Home
last modified time | relevance | path

Searched refs:deadline (Results 1 – 12 of 12) 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 …]
DCondition.java451 boolean awaitUntil(Date deadline) throws InterruptedException; in awaitUntil() argument
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 …]
DAbstractQueuedSynchronizer.java947 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos() local
957 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
1043 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos() local
1056 nanosTimeout = deadline - System.nanoTime(); in doAcquireSharedNanos()
2098 final long deadline = System.nanoTime() + nanosTimeout; in awaitNanos() local
2112 nanosTimeout = deadline - System.nanoTime(); in awaitNanos()
2120 long remaining = deadline - System.nanoTime(); // avoid overflow in awaitNanos()
2138 public final boolean awaitUntil(Date deadline) in awaitUntil() argument
2140 long abstime = deadline.getTime(); in awaitUntil()
2186 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.java1835 long deadline = (((scale <= 0) ? 1 : scale) * IDLE_TIMEOUT_MS + in timedAwaitWork() local
1842 LockSupport.parkUntil(this, deadline); in timedAwaitWork()
1848 deadline - System.currentTimeMillis() <= TIMEOUT_SLOP_MS) { in timedAwaitWork()
2226 final int awaitJoin(WorkQueue w, ForkJoinTask<?> task, long deadline) { in awaitJoin() argument
2242 if (deadline == 0L) in awaitJoin()
2244 else if ((ns = deadline - System.nanoTime()) <= 0L) in awaitJoin()
3256 long deadline = System.nanoTime() + nanos; in awaitTermination() local
3265 nanos = deadline - System.nanoTime(); in awaitTermination()
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