Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java668 public boolean hasWaiters(Condition condition) { in hasWaiters() argument
669 if (condition == null) in hasWaiters()
671 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in hasWaiters()
673 return sync.hasWaiters((AbstractQueuedSynchronizer.ConditionObject)condition); in hasWaiters()
691 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() argument
692 if (condition == null) in getWaitQueueLength()
694 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in getWaitQueueLength()
696 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
716 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() argument
717 if (condition == null) in getWaitingThreads()
[all …]
DReentrantReadWriteLock.java1390 public boolean hasWaiters(Condition condition) { in hasWaiters() argument
1391 if (condition == null) in hasWaiters()
1393 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in hasWaiters()
1395 return sync.hasWaiters((AbstractQueuedSynchronizer.ConditionObject)condition); in hasWaiters()
1413 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() argument
1414 if (condition == null) in getWaitQueueLength()
1416 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in getWaitQueueLength()
1418 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
1438 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() argument
1439 if (condition == null) in getWaitingThreads()
[all …]
DAbstractQueuedLongSynchronizer.java1268 public final boolean owns(ConditionObject condition) { in owns() argument
1269 return condition.isOwnedBy(this); in owns()
1288 public final boolean hasWaiters(ConditionObject condition) { in hasWaiters() argument
1289 if (!owns(condition)) in hasWaiters()
1291 return condition.hasWaiters(); in hasWaiters()
1310 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() argument
1311 if (!owns(condition)) in getWaitQueueLength()
1313 return condition.getWaitQueueLength(); in getWaitQueueLength()
1332 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() argument
1333 if (!owns(condition)) in getWaitingThreads()
[all …]
DAbstractQueuedSynchronizer.java1739 public final boolean owns(ConditionObject condition) { in owns() argument
1740 return condition.isOwnedBy(this); in owns()
1759 public final boolean hasWaiters(ConditionObject condition) { in hasWaiters() argument
1760 if (!owns(condition)) in hasWaiters()
1762 return condition.hasWaiters(); in hasWaiters()
1781 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() argument
1782 if (!owns(condition)) in getWaitQueueLength()
1784 return condition.getWaitQueueLength(); in getWaitQueueLength()
1803 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() argument
1804 if (!owns(condition)) in getWaitingThreads()
[all …]