Home
last modified time | relevance | path

Searched refs:nThreads (Results 1 – 9 of 9) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/bugs/
DConcurrentModificationExceptionOnMultiThreadedVerificationTest.java26 int nThreads = 1; field in ConcurrentModificationExceptionOnMultiThreadedVerificationTest
37 fixedThreadPool = Executors.newFixedThreadPool(nThreads); in setUp()
48 verify(target, timeout(expectedMaxTestLength).times(TIMES * nThreads)).targetMethod("arg"); in shouldSuccessfullyVerifyConcurrentInvocationsWithTimeout()
55 for(int i=0; i<nThreads; i++) { in startInvocations()
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetBasherTest.java66 int nThreads = 20; in testAddAndRemove() local
68 int nTasks = nThreads * tasksPerThread; in testAddAndRemove()
69 ExecutorService pool = Executors.newFixedThreadPool(nThreads); in testAddAndRemove()
DMapMakerTest.java125 int nThreads = 100; in testRemovalNotification_clear_basher() local
138 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_clear_basher()
154 while (computedCount.get() < nThreads) { in testRemovalNotification_clear_basher()
/external/python/cpython2/Lib/test/
Dtest_capi.py71 context.nThreads = n // context.n
78 for i in range(context.nThreads)]
91 if nFinished == context.nThreads:
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java462 int nThreads = 100; in testRemovalNotification_clear_basher() local
476 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_clear_basher()
492 while (computedCount.get() < nThreads) { in testRemovalNotification_clear_basher()
528 int nThreads = 100; in testRemovalNotification_get_basher() local
565 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testRemovalNotification_get_basher()
DCacheLoadingTest.java2098 int nThreads, final CountDownLatch gettersStartedSignal) throws InterruptedException { in doConcurrentGet() argument
2100 final AtomicReferenceArray<Object> result = new AtomicReferenceArray<Object>(nThreads); in doConcurrentGet()
2101 final CountDownLatch gettersComplete = new CountDownLatch(nThreads); in doConcurrentGet()
2102 for (int i = 0; i < nThreads; i++) { in doConcurrentGet()
2135 List<Object> resultList = Lists.newArrayListWithExpectedSize(nThreads); in doConcurrentGet()
2136 for (int i = 0; i < nThreads; i++) { in doConcurrentGet()
/external/python/cpython3/Lib/test/
Dtest_capi.py364 context.nThreads = n // context.n
371 for i in range(context.nThreads)]
384 if nFinished == context.nThreads:
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapTest.java560 int nThreads = 100; in testModify_basher() local
568 ExecutorService threadPool = Executors.newFixedThreadPool(nThreads); in testModify_basher()
/external/guice/core/test/com/google/inject/
DScopesTest.java921 SBarrierProvider(int nThreads) {
924 nThreads,