Home
last modified time | relevance | path

Searched refs:numberOfThreads (Results 1 – 6 of 6) sorted by relevance

/external/guava/guava-testlib/test/com/google/common/testing/
DFakeTickerTest.java108 int numberOfThreads = 64; in testConcurrentAdvance() local
109 runConcurrentTest(numberOfThreads, in testConcurrentAdvance()
121 assertEquals(numberOfThreads * 2, ticker.read()); in testConcurrentAdvance()
131 int numberOfThreads = 64; in testConcurrentAutoIncrementStep() local
132 runConcurrentTest(numberOfThreads, in testConcurrentAutoIncrementStep()
141 assertEquals(incrementByNanos * numberOfThreads, ticker.read()); in testConcurrentAutoIncrementStep()
148 private void runConcurrentTest(int numberOfThreads, final Callable<Void> callable) in runConcurrentTest() argument
150 ExecutorService executorService = Executors.newFixedThreadPool(numberOfThreads); in runConcurrentTest()
151 final CountDownLatch startLatch = new CountDownLatch(numberOfThreads); in runConcurrentTest()
152 final CountDownLatch doneLatch = new CountDownLatch(numberOfThreads); in runConcurrentTest()
[all …]
/external/tensorflow/tensorflow/lite/experimental/objc/tests/
DTFLInterpreterOptionsTests.m34 XCTAssertEqual(options.numberOfThreads, 0);
39 options.numberOfThreads = 2;
40 XCTAssertEqual(options.numberOfThreads, 2);
41 options.numberOfThreads = 0;
42 XCTAssertEqual(options.numberOfThreads, 0);
43 options.numberOfThreads = 3;
44 XCTAssertEqual(options.numberOfThreads, 3);
DTFLInterpreterTests.m102 options.numberOfThreads = 2;
186 options.numberOfThreads = 2;
/external/mockito/src/test/java/org/concurrentmockito/
DThreadsRunAllTestsHalfManualTest.java151 public static Set<Class<?>> runInMultipleThreads(int numberOfThreads) throws Exception { in runInMultipleThreads() argument
153 for (int i = 1; i <= numberOfThreads; i++) { in runInMultipleThreads()
171 int numberOfThreads = 20; in main() local
173 Set<Class<?>> failed = runInMultipleThreads(numberOfThreads); in main()
176 …System.out.println("Finished tests in " + numberOfThreads + " threads in " + executionTime + " sec… in main()
/external/tensorflow/tensorflow/lite/experimental/objc/apis/
DTFLInterpreterOptions.h26 @property(nonatomic) NSUInteger numberOfThreads;
/external/tensorflow/tensorflow/lite/experimental/objc/sources/
DTFLInterpreter.mm97 if (options.numberOfThreads > 0) {
98 TFL_InterpreterOptionsSetNumThreads(cOptions, (int32_t)options.numberOfThreads);