Searched refs:condition (Results 1 – 8 of 8) sorted by relevance
700 public boolean hasWaiters(Condition condition) { in hasWaiters() argument701 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() argument724 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() argument749 if (condition == null) in getWaitingThreads()[all …]
1419 public boolean hasWaiters(Condition condition) { in hasWaiters() argument1420 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() argument1443 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() argument1468 if (condition == null) in getWaitingThreads()[all …]
1297 public final boolean owns(ConditionObject condition) { in owns() argument1298 return condition.isOwnedBy(this); in owns()1317 public final boolean hasWaiters(ConditionObject condition) { in hasWaiters() argument1318 if (!owns(condition)) in hasWaiters()1320 return condition.hasWaiters(); in hasWaiters()1339 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() argument1340 if (!owns(condition)) in getWaitQueueLength()1342 return condition.getWaitQueueLength(); in getWaitQueueLength()1361 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() argument1362 if (!owns(condition)) in getWaitingThreads()[all …]
112 public boolean hasWaiters(java.util.concurrent.locks.Condition condition) { in hasWaiters() argument116 public int getWaitQueueLength(java.util.concurrent.locks.Condition condition) { in getWaitQueueLength() argument121 java.util.concurrent.locks.Condition condition) { in getWaitingThreads() argument
127 AbstractQueuedLongSynchronizer.ConditionObject condition = mutex.newCondition(); in testConditionObjectCreation() local128 assertTrue(mutex.owns(condition)); in testConditionObjectCreation()
127 AbstractQueuedSynchronizer.ConditionObject condition = mutex.newCondition(); in testConditionObjectCreation() local128 assertTrue(mutex.owns(condition)); in testConditionObjectCreation()
90 final Condition condition = lock.readLock().newCondition(); in testReadLockCondition() local
... .lang.String, boolean) String message boolean condition public static void assertTrue (boolean) boolean condition public ...