Home
last modified time | relevance | path

Searched refs:cancelled (Results 1 – 4 of 4) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java447 final CountDownLatch cancelled = new CountDownLatch(1); in testCancelInterrupt_ThrowsSecurityException() local
452 await(cancelled); in testCancelInterrupt_ThrowsSecurityException()
478 cancelled.countDown(); in testCancelInterrupt_ThrowsSecurityException()
520 final CountDownLatch cancelled = new CountDownLatch(1); in testCancelNoInterrupt() local
525 await(cancelled); in testCancelNoInterrupt()
534 cancelled.countDown(); in testCancelNoInterrupt()
632 final CountDownLatch cancelled = new CountDownLatch(1); in testTimedGet_Cancellation() local
642 await(cancelled); in testTimedGet_Cancellation()
667 cancelled.countDown(); in testTimedGet_Cancellation()
DThreadPoolExecutorSubclassTest.java58 boolean cancelled; field in ThreadPoolExecutorSubclassTest.CustomTask
75 lock.lock(); try { return cancelled; } finally { lock.unlock() ; } in isCancelled()
81 cancelled = true; in cancel()
124 if (cancelled) in get()
142 if (cancelled) in get()
/libcore/ojluni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java287 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel()
288 if (cancelled && removeOnCancel && heapIndex >= 0) in cancel()
290 return cancelled; in cancel()
DCompletableFuture.java2292 boolean cancelled = (result == null) && in cancel()
2295 return cancelled || isCancelled(); in cancel()