Home
last modified time | relevance | path

Searched refs:done (Results 1 – 25 of 34) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorTest.java96 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
98 public void realRun() { done.countDown(); }}; in testExecute()
100 assertTrue(done.await(LONG_DELAY_MS, MILLISECONDS)); in testExecute()
109 final CountDownLatch done = new CountDownLatch(1); in testGetActiveCount() local
114 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() argument
121 await(done); in testGetActiveCount()
336 final CountDownLatch done = new CountDownLatch(1); in testGetLargestPoolSize() local
341 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetLargestPoolSize() argument
348 await(done); in testGetLargestPoolSize()
380 final CountDownLatch done = new CountDownLatch(1); in testGetPoolSize() local
[all …]
DThreadPoolExecutorSubclassTest.java57 boolean done; field in ThreadPoolExecutorSubclassTest.CustomTask
72 lock.lock(); try { return done; } finally { lock.unlock() ; } in isDone()
80 if (!done) { in cancel()
82 done = true; in cancel()
94 if (done) in run()
109 if (!done) { in run()
112 done = true; in run()
122 while (!done) in get()
137 while (!done) { in get()
243 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
[all …]
DScheduledExecutorSubclassTest.java112 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
114 public void realRun() { done.countDown(); }}; in testExecute()
116 await(done); in testExecute()
124 final CountDownLatch done = new CountDownLatch(1); in testSchedule1() local
126 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1() argument
130 done.countDown(); in testSchedule1()
147 final CountDownLatch done = new CountDownLatch(1); in testSchedule3() local
150 done.countDown(); in testSchedule3()
154 await(done); in testSchedule3()
167 final CountDownLatch done = new CountDownLatch(1); in testSchedule4() local
[all …]
DScheduledExecutorTest.java55 final CountDownLatch done = new CountDownLatch(1); in testExecute() local
57 public void realRun() { done.countDown(); }}; in testExecute()
59 assertTrue(done.await(LONG_DELAY_MS, MILLISECONDS)); in testExecute()
70 final CountDownLatch done = new CountDownLatch(1); in testSchedule1() local
73 done.countDown(); in testSchedule1()
80 assertTrue(done.await(0L, MILLISECONDS)); in testSchedule1()
91 final CountDownLatch done = new CountDownLatch(1); in testSchedule3() local
94 done.countDown(); in testSchedule3()
98 await(done); in testSchedule3()
111 final CountDownLatch done = new CountDownLatch(1); in testSchedule4() local
[all …]
DExecutorCompletionServiceTest.java162 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForCallable() local
165 protected void done() { done.set(true); } in testNewTaskForCallable() method in ExecutorCompletionServiceTest.MyCallableFuture
184 assertTrue("completed task must have set done", done.get()); in testNewTaskForCallable()
193 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForRunnable() local
196 protected void done() { done.set(true); } in testNewTaskForRunnable() method in ExecutorCompletionServiceTest.MyRunnableFuture
215 assertTrue("completed task must have set done", done.get()); in testNewTaskForRunnable()
DCollection8Test.java79 final AtomicBoolean done = new AtomicBoolean(false); in testForEachConcurrentStressTest() local
83 try (PoolCleaner cleaner = cleaner(pool, done)) { in testForEachConcurrentStressTest() argument
87 while (!done.get()) in testForEachConcurrentStressTest()
91 while (!done.get()) { in testForEachConcurrentStressTest()
DForkJoinPoolTest.java221 final CountDownLatch done = new CountDownLatch(1); in testGetPoolSize() local
230 done.await(); in testGetPoolSize()
236 done.countDown(); in testGetPoolSize()
387 final CountDownLatch done = new CountDownLatch(1);
390 ForkJoinTask a = p.submit(awaiter(done));
391 ForkJoinTask b = p.submit(awaiter(done));
392 ForkJoinTask c = p.submit(awaiter(done));
396 done.countDown();
404 final CountDownLatch done = new CountDownLatch(1);
407 ForkJoinTask a = p.submit(awaiter(done));
[all …]
DJSR166TestCase.java1602 private volatile boolean done = false;
1603 public boolean isDone() { return done; }
1607 done = true;
1614 public volatile boolean done = false;
1618 done = true;
1624 public volatile boolean done = false;
1628 done = true;
1634 public volatile boolean done = false;
1638 done = true;
1644 public volatile boolean done = false;
[all …]
DExecutorsTest.java309 final CountDownLatch done = new CountDownLatch(1); in testDefaultThreadFactory() local
327 done.countDown(); in testDefaultThreadFactory()
332 await(done); in testDefaultThreadFactory()
342 final CountDownLatch done = new CountDownLatch(1); in testPrivilegedThreadFactory() local
364 done.countDown(); in testPrivilegedThreadFactory()
369 await(done); in testPrivilegedThreadFactory()
DAtomicIntegerArrayTest.java288 boolean done = true; in realRun()
293 done = false; in realRun()
298 if (done) in realRun()
DAtomicLongArrayTest.java287 boolean done = true; in realRun()
292 done = false; in realRun()
297 if (done) in realRun()
DCyclicBarrierTest.java306 final AtomicBoolean done = new AtomicBoolean(); in testReset_Leakage() local
309 while (!done.get()) { in testReset_Leakage()
325 done.set(true); in testReset_Leakage()
DForkJoinTask8Test.java1175 final CountDownLatch done = new CountDownLatch(1);
1176 final ForkJoinTask a = ForkJoinTask.adapt(awaiter(done));
1177 final ForkJoinTask b = ForkJoinTask.adapt(awaiter(done));
1178 final ForkJoinTask c = ForkJoinTask.adapt(awaiter(done));
1180 try (PoolCleaner cleaner = cleaner(p, done)) {
/libcore/ojluni/src/main/java/javax/crypto/
DExemptionMechanism.java64 private boolean done = false; field in ExemptionMechanism
260 if (done && (key != null)) { in isCryptoAllowed()
316 done = false; in init()
348 done = false; in init()
380 done = false; in init()
405 done = true; in genExemptionBlob()
438 done = true; in genExemptionBlob()
474 done = true; in genExemptionBlob()
DCipherInputStream.java80 private boolean done = false; field in CipherInputStream
102 if (done) return -1; in getMoreData()
105 done = true; in getMoreData()
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java113 assertTrue("Threads already finished", !t1.done && !t2.done); in testThreadWakeup()
119 assertTrue("Threads did not finish", t1.done && t2.done); in testThreadWakeup()
197 public boolean done; field in WakeupTestThread
200 done = false; in run()
208 done = true; in run()
DSystemTest.java127 final AtomicBoolean done = new AtomicBoolean(); in testArrayCopyConcurrentModification() local
136 while (!done.get()) { in testArrayCopyConcurrentModification()
151 done.set(true); in testArrayCopyConcurrentModification()
/libcore/ojluni/src/main/java/sun/util/locale/
DStringTokenIterator.java41 private boolean done; field in StringTokenIterator
71 return done; in isDone()
82 done = true; in next()
98 done = false; in setStart()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DStriped64.java201 done: for (;;) { in longAccumulate()
214 break done; in longAccumulate() local
251 break done; in longAccumulate() local
260 break done; in longAccumulate() local
285 done: for (;;) { in doubleAccumulate()
298 break done; in doubleAccumulate() local
334 break done; in doubleAccumulate() local
342 break done; in doubleAccumulate() local
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DcreateElementNS06.java65 boolean done; in runTest()
DcreateElementNS03.java72 boolean done; in runTest()
/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java190 protected void done() { } in done() method in FutureTask
354 done(); in finishCompletion()
DExecutorCompletionService.java94 protected void done() { completionQueue.add(task); } in done() method in ExecutorCompletionService.QueueingFuture
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java567 public volatile boolean done = false; in test_isInterrupted() field in ThreadTest.SpinThread
572 while (!done) in test_isInterrupted()
587 spin.done = true; in test_isInterrupted()
590 spin.done = true; in test_isInterrupted()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java178 final CountDownLatch done = new CountDownLatch(1); in testAddAllIsAtomic() local
183 while (done.getCount() > 0) { in testAddAllIsAtomic()
199 done.countDown(); in testAddAllIsAtomic()

12