Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java700 public boolean hasWaiters(Condition condition) { in hasWaiters() argument
701 if (condition == null) in hasWaiters()
703 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in hasWaiters()
705 return sync.hasWaiters((AbstractQueuedSynchronizer.ConditionObject)condition); in hasWaiters()
723 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() argument
724 if (condition == null) in getWaitQueueLength()
726 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in getWaitQueueLength()
728 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
748 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() argument
749 if (condition == null) in getWaitingThreads()
[all …]
DReentrantReadWriteLock.java1419 public boolean hasWaiters(Condition condition) { in hasWaiters() argument
1420 if (condition == null) in hasWaiters()
1422 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in hasWaiters()
1424 return sync.hasWaiters((AbstractQueuedSynchronizer.ConditionObject)condition); in hasWaiters()
1442 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() argument
1443 if (condition == null) in getWaitQueueLength()
1445 if (!(condition instanceof AbstractQueuedSynchronizer.ConditionObject)) in getWaitQueueLength()
1447 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
1467 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() argument
1468 if (condition == null) in getWaitingThreads()
[all …]
DAbstractQueuedLongSynchronizer.java1297 public final boolean owns(ConditionObject condition) { in owns() argument
1298 return condition.isOwnedBy(this); in owns()
1317 public final boolean hasWaiters(ConditionObject condition) { in hasWaiters() argument
1318 if (!owns(condition)) in hasWaiters()
1320 return condition.hasWaiters(); in hasWaiters()
1339 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() argument
1340 if (!owns(condition)) in getWaitQueueLength()
1342 return condition.getWaitQueueLength(); in getWaitQueueLength()
1361 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() argument
1362 if (!owns(condition)) in getWaitingThreads()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java112 public boolean hasWaiters(java.util.concurrent.locks.Condition condition) { in hasWaiters() argument
116 public int getWaitQueueLength(java.util.concurrent.locks.Condition condition) { in getWaitQueueLength() argument
121 java.util.concurrent.locks.Condition condition) { in getWaitingThreads() argument
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAbstractQueuedLongSynchronizerTest.java127 AbstractQueuedLongSynchronizer.ConditionObject condition = mutex.newCondition(); in testConditionObjectCreation() local
128 assertTrue(mutex.owns(condition)); in testConditionObjectCreation()
DAbstractQueuedSynchronizerTest.java127 AbstractQueuedSynchronizer.ConditionObject condition = mutex.newCondition(); in testConditionObjectCreation() local
128 assertTrue(mutex.owns(condition)); in testConditionObjectCreation()
DReentrantReadWriteLockTest.java90 final Condition condition = lock.readLock().newCondition(); in testReadLockCondition() local
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jar ... .lang.String, boolean) String message boolean condition public static void assertTrue (boolean) boolean condition public ...