Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,234 for toRead (0.23 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

                start {
                    workerLeaseService.withLocks([taskLease]) {
                        instant.worker1Locked
                        thread.block()
                        instant.worker1Unlocked
                    }
                }
                start {
                    thread.blockUntil.worker1Locked
                    workerLeaseService.withLocks([taskLease]) {
                        instant.worker2Locked
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/internal/Finalizer.java

            logger.log(
                Level.INFO, "Failed to create a thread without inherited thread-local values", t);
          }
        }
        if (thread == null) {
          thread = new Thread((ThreadGroup) null, finalizer, threadName);
        }
        thread.setDaemon(true);
    
        try {
          if (inheritableThreadLocals != null) {
            inheritableThreadLocals.set(thread, null);
          }
        } catch (Throwable t) {
          logger.log(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Aug 23 12:54:09 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/transport/Transport.java

                        throw te;
                }
    
                state = 1;
                te = null;
                thread = new Thread( this, name );
                thread.setDaemon( true );
    
                synchronized (thread) {
                    thread.start();
                    thread.wait( timeout );          /* wait for doConnect */
    
                    switch (state) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      }
    
      /**
       * Causes this thread to call the named method, and asserts that this thread becomes blocked on
       * the lock-like object. The lock-like object must have a method equivalent to {@link
       * java.util.concurrent.locks.ReentrantLock#hasQueuedThread(Thread)}.
       */
      public void callAndAssertBlocks(String methodName, Object... arguments) throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestExecutor.groovy

                        }
                    }
                }
            }
    
            lock.lock()
            try {
                threads << thread
                thread.name = "Test thread ${++threadNum}"
            } finally {
                lock.unlock()
            }
    
            thread.start()
        }
    
        void stop(Date expiry) {
            lock.lock()
            try {
                if (!threads.isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ThreadFactoryImpl.java

        }
    
        @Override
        public Thread newThread(Runnable r) {
            Thread thread = new Thread(r);
            thread.setName(nextThreadName());
            thread.setContextClassLoader(contextClassloader);
            return thread;
        }
    
        private String nextThreadName() {
            long count = counter.incrementAndGet();
            return count == 1 ? displayName : displayName + " Thread " + count;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/ResurrectingThread.kt

    import kotlin.concurrent.thread
    
    
    /**
     * A thread that comes back to life when [poke]d.
     */
    internal
    class ResurrectingThread(val name: String, val block: () -> Unit) {
    
        private
        var thread: Thread? = null
    
        /**
         * Checks if the thread is alive, resurrecting it if it's not.
         */
        fun poke() = synchronized(this) {
            if (thread?.isAlive != true) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/integTest/resources/org/gradle/internal/logging/LoggingIntegrationTest/multiThreaded/build.gradle

            (1..10).each { thread ->
                executor.execute {
                    def textOut = services.get(StyledTextOutputFactory.class).create('build')
                    (1..100).each { iteration ->
                        logger.lifecycle("log message from thread $thread iteration $iteration")
                        print "stdout message "
                        println "from thread $thread iteration $iteration"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         *       observing a null thread does not mean the object is safe to reuse.
         *   <li>If this field's value is some other thread object, we know that it's not our thread.
         *   <li>If this field's value == null because it originally belonged to another thread and that
         *       thread cleared it, we still know that it's not associated with our thread
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultSynchronizer.java

            }
        }
    
        @Override
        public <T> T withLock(Factory<T> action) {
            Thread previous = takeOwnership();
            try {
                return action.create();
            } finally {
                releaseOwnership(previous);
            }
        }
    
        private Thread takeOwnership() {
            final Thread currentThread = Thread.currentThread();
            if (!workerLeaseService.isWorkerThread()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top