Home
last modified time | relevance | path

Searched refs:isHeldExclusively (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java166 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantLock.Sync
183 return isHeldExclusively() ? getState() : 0; in getHoldCount()
587 return sync.isHeldExclusively(); in isHeldByCurrentThread()
DReentrantReadWriteLock.java372 if (!isHeldExclusively()) in tryRelease()
607 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantReadWriteLock.Sync
635 return isHeldExclusively() ? exclusiveCount(getState()) : 0; in getWriteHoldCount()
1213 return sync.isHeldExclusively(); in isHeldByCurrentThread()
1288 return sync.isHeldExclusively(); in isWriteLockedByCurrentThread()
DAbstractQueuedLongSynchronizer.java739 protected boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizer
1494 if (!isHeldExclusively()) in signal()
1509 if (!isHeldExclusively()) in signalAll()
1760 if (!isHeldExclusively()) in hasWaiters()
1779 if (!isHeldExclusively()) in getWaitQueueLength()
1799 if (!isHeldExclusively()) in getWaitingThreads()
DAbstractQueuedSynchronizer.java1207 protected boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizer
1966 if (!isHeldExclusively()) in signal()
1981 if (!isHeldExclusively()) in signalAll()
2232 if (!isHeldExclusively()) in hasWaiters()
2251 if (!isHeldExclusively()) in getWaitQueueLength()
2271 if (!isHeldExclusively()) in getWaitingThreads()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java48 @Override public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizerTest.Mutex
281 assertFalse(sync.isHeldExclusively()); in testIsHeldExclusively()
290 assertTrue(sync.isHeldExclusively()); in testAcquire()
292 assertFalse(sync.isHeldExclusively()); in testAcquire()
301 assertTrue(sync.isHeldExclusively()); in testTryAcquire()
303 assertFalse(sync.isHeldExclusively()); in testTryAcquire()
568 assertTrue(sync.isHeldExclusively()); in testGetState()
570 assertFalse(sync.isHeldExclusively()); in testGetState()
583 assertTrue(sync.isHeldExclusively()); in testGetState()
586 assertFalse(sync.isHeldExclusively()); in testGetState()
[all …]
DAbstractQueuedLongSynchronizerTest.java45 public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizerTest.Mutex
278 assertFalse(sync.isHeldExclusively()); in testIsHeldExclusively()
287 assertTrue(sync.isHeldExclusively()); in testAcquire()
289 assertFalse(sync.isHeldExclusively()); in testAcquire()
298 assertTrue(sync.isHeldExclusively()); in testTryAcquire()
300 assertFalse(sync.isHeldExclusively()); in testTryAcquire()
565 assertTrue(sync.isHeldExclusively()); in testGetState()
567 assertFalse(sync.isHeldExclusively()); in testGetState()
580 assertTrue(sync.isHeldExclusively()); in testGetState()
583 assertFalse(sync.isHeldExclusively()); in testGetState()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java191 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantLock.Sync
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java649 protected boolean isHeldExclusively() { in isHeldExclusively() method in ThreadPoolExecutor.Worker
670 public boolean isLocked() { return isHeldExclusively(); } in isLocked()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DThreadPoolExecutor.java464 protected boolean isHeldExclusively() { in isHeldExclusively() method in ThreadPoolExecutor.Worker