Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 558 for nThreads (0.2 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      /**
       * Checks that the threads do not terminate within the default millisecond delay of {@code
       * timeoutMillis()}.
       */
      void assertThreadsStayAlive(Thread... threads) {
        assertThreadsStayAlive(timeoutMillis(), threads);
      }
    
      /** Checks that the threads do not terminate within the given millisecond delay. */
      void assertThreadsStayAlive(long millis, Thread... threads) {
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParallelIntegrationTest.groovy

                        def threadGroup = Thread.currentThread().threadGroup
                        println "\\nWorker Executor threads:"
                        def threads = new Thread[threadGroup.activeCount()]
                        threadGroup.enumerate(threads)
                        def executorThreads = threads.findAll { it?.name?.startsWith("${WorkerExecutionQueueFactory.QUEUE_DISPLAY_NAME}") }
                        executorThreads.each { println it }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  3. src/regexp/exec.go

    	m.clear(nextq)
    	return m.matched
    }
    
    // clear frees all threads on the thread queue.
    func (m *machine) clear(q *queue) {
    	for _, d := range q.dense {
    		if d.t != nil {
    			m.pool = append(m.pool, d.t)
    		}
    	}
    	q.dense = q.dense[:0]
    }
    
    // step executes one step of the machine, running each of the threads
    // on runq and appending new threads to nextq.
    // The step processes the rune c (which may be endOfText),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      /**
       * Checks that the threads do not terminate within the default millisecond delay of {@code
       * timeoutMillis()}.
       */
      void assertThreadsStayAlive(Thread... threads) {
        assertThreadsStayAlive(timeoutMillis(), threads);
      }
    
      /** Checks that the threads do not terminate within the given millisecond delay. */
      void assertThreadsStayAlive(long millis, Thread... threads) {
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/streams/DefaultValueStoreTest.groovy

            def block3 = write("test 3")
    
            read(block2) == "test 2"
            read(block3) == "test 3"
            read(block1) == "test 1"
        }
    
        def "can write blocks and read block from multiple threads"() {
            expect:
            def blocks = new ConcurrentHashMap<Integer, BlockAddress>()
            async {
                10.times { index ->
                    start {
                        blocks[index] = write("test $index")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/HashBasedTable.java

     * since an iteration across all row keys occurs.
     *
     * <p>Note that this implementation is not synchronized. If multiple threads access this table
     * concurrently and one of the threads modifies the table, it must be synchronized externally.
     *
     * <p>See the Guava User Guide article on <a href=
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/HashBasedTable.java

     * since an iteration across all row keys occurs.
     *
     * <p>Note that this implementation is not synchronized. If multiple threads access this table
     * concurrently and one of the threads modifies the table, it must be synchronized externally.
     *
     * <p>See the Guava User Guide article on <a href=
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/InMemoryDecoratedCacheTest.groovy

            1 * target.get("key") >> null
            1 * producer.apply("key") >> { throw failure }
            1 * completion.run()
            0 * _
        }
    
        def "produces value once when requested from multiple threads"() {
            def producer = Mock(Function)
    
            when:
            def result1
            def result2
            def result3
            def result4
            async {
                start {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerThreadRegistry.java

         *
         * <p>Note that the caller must call {@link WorkerLeaseRegistry.WorkerLeaseCompletion#leaseFinish()} to mark the completion of the lease and to release the lease for other threads to use.
         *
         * <p>It is generally better to use {@link WorkerThreadRegistry#runAsWorkerThread(Runnable)} instead of this method.</p>
         */
        WorkerLeaseRegistry.WorkerLeaseCompletion startWorker();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/native/src/jmh/java/org/gradle/internal/nativeintegration/filesystem/FileMetadataAccessorBenchmark.java

    import org.openjdk.jmh.annotations.Threads;
    import org.openjdk.jmh.annotations.Warmup;
    import org.openjdk.jmh.infra.Blackhole;
    
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.nio.file.Path;
    import java.nio.file.attribute.BasicFileAttributes;
    import java.util.Map;
    import java.util.UUID;
    
    @SuppressWarnings("Since15")
    @Threads(2)
    @Warmup(iterations = 5)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top