Home
last modified time | relevance | path

Searched refs:deadline (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DLockSupport.java268 public static void parkUntil(Object blocker, long deadline) { in parkUntil() argument
271 U.park(true, deadline); in parkUntil()
386 public static void parkUntil(long deadline) { in parkUntil() argument
387 U.park(true, deadline); in parkUntil()
DStampedLock.java383 long next, deadline; in tryWriteLock() local
388 if ((deadline = System.nanoTime() + nanos) == 0L) in tryWriteLock()
389 deadline = 1L; in tryWriteLock()
390 if ((next = acquireWrite(true, deadline)) != INTERRUPTED) in tryWriteLock()
462 long s, m, next, deadline; in tryReadLock() local
475 if ((deadline = System.nanoTime() + nanos) == 0L) in tryReadLock()
476 deadline = 1L; in tryReadLock()
477 if ((next = acquireRead(true, deadline)) != INTERRUPTED) in tryReadLock()
1033 private long acquireWrite(boolean interruptible, long deadline) { in acquireWrite() argument
1110 if (deadline == 0L) in acquireWrite()
[all …]
DAbstractQueuedLongSynchronizer.java479 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos() local
489 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
575 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos() local
588 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
1626 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos() local
1640 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
1648 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
1666 public final boolean awaitUntil(Date deadline) in awaitUntil() argument
1668 long abstime = deadline.getTime(); in awaitUntil()
1714 final long deadline = System.nanoTime() + nanosTimeout; in await() local
[all …]
DCondition.java451 boolean awaitUntil(Date deadline) throws InterruptedException; in awaitUntil() argument
DAbstractQueuedSynchronizer.java945 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos() local
955 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
1041 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos() local
1054 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
2090 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos() local
2104 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
2112 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
2130 public final boolean awaitUntil(Date deadline) in awaitUntil() argument
2132 long abstime = deadline.getTime(); in awaitUntil()
2178 final long deadline = System.nanoTime() + nanosTimeout; in await() local
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java169 final long deadline = timed ? System.nanoTime() + nanos : 0L; in doInvokeAny() local
191 nanos = deadline - System.nanoTime(); in doInvokeAny()
265 final long deadline = System.nanoTime() + nanos; in invokeAll() local
277 if (((i == 0) ? nanos : deadline - System.nanoTime()) <= 0L) in invokeAll()
285 try { f.get(deadline - System.nanoTime(), NANOSECONDS); } in invokeAll()
DSynchronousQueue.java436 final long deadline = timed ? System.nanoTime() + nanos : 0L; in awaitFulfill() local
448 nanos = deadline - System.nanoTime(); in awaitFulfill()
737 final long deadline = timed ? System.nanoTime() + nanos : 0L; in awaitFulfill() local
749 nanos = deadline - System.nanoTime(); in awaitFulfill()
DPhaser.java1091 final long deadline; field in Phaser.QNode
1102 this.deadline = timed ? System.nanoTime() + nanos : 0L; in QNode()
1120 (nanos <= 0L || (nanos = deadline - System.nanoTime()) <= 0L)) { in isReleasable()
DForkJoinTask.java1023 long deadline = (d == 0L) ? 1L : d; // avoid 0 in get() local
1027 s = wt.pool.awaitJoin(wt.workQueue, this, deadline); in get()
1036 (ns = deadline - System.nanoTime()) > 0L) { in get()
DForkJoinPool.java1832 long deadline = (((scale <= 0) ? 1 : scale) * IDLE_TIMEOUT_MS + in timedAwaitWork() local
1839 LockSupport.parkUntil(this, deadline); in timedAwaitWork()
1845 deadline - System.currentTimeMillis() <= TIMEOUT_SLOP_MS) { in timedAwaitWork()
2223 final int awaitJoin(WorkQueue w, ForkJoinTask<?> task, long deadline) { in awaitJoin() argument
2239 if (deadline == 0L) in awaitJoin()
2241 else if ((ns = deadline - System.nanoTime()) <= 0L) in awaitJoin()
3253 long deadline = System.nanoTime() + nanos; in awaitTermination() local
3262 nanos = deadline - System.nanoTime(); in awaitTermination()
DCompletableFuture.java1690 final long deadline; // non-zero if timed field in CompletableFuture.Signaller
1695 Signaller(boolean interruptible, long nanos, long deadline) { in Signaller() argument
1699 this.deadline = deadline; in Signaller()
1713 (deadline != 0L && in isReleasable()
1715 (nanos = deadline - System.nanoTime()) <= 0L)) || in isReleasable()
1720 if (deadline == 0L) in block()
1781 long deadline = (d == 0L) ? 1L : d; // avoid 0 in timedGet() local
1787 q = new Signaller(true, nanos, deadline); in timedGet()
DLinkedTransferQueue.java694 final long deadline = timed ? System.nanoTime() + nanos : 0L; in awaitMatch() local
725 nanos = deadline - System.nanoTime(); in awaitMatch()
/libcore/jsr166-tests/src/test/java/jsr166/
DLockSupportTest.java57 LockSupport.parkUntil(deadline(millis)); in parkUntil()
75 LockSupport.parkUntil(theBlocker(), deadline(millis)); in parkUntilBlocker()
89 long deadline(long millis) { in deadline() method in LockSupportTest.ParkMethod