Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java132 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantLock.Sync
149 return isHeldExclusively() ? getState() : 0; in getHoldCount()
549 return sync.isHeldExclusively(); in isHeldByCurrentThread()
DReentrantReadWriteLock.java342 if (!isHeldExclusively()) in tryRelease()
577 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantReadWriteLock.Sync
605 return isHeldExclusively() ? exclusiveCount(getState()) : 0; in getWriteHoldCount()
1178 return sync.isHeldExclusively(); in isHeldByCurrentThread()
1253 return sync.isHeldExclusively(); in isWriteLockedByCurrentThread()
DAbstractQueuedSynchronizer.java1158 protected boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizer
1915 if (!isHeldExclusively()) in signal()
1930 if (!isHeldExclusively()) in signalAll()
2175 if (!isHeldExclusively()) in hasWaiters()
2194 if (!isHeldExclusively()) in getWaitQueueLength()
2214 if (!isHeldExclusively()) in getWaitingThreads()
DAbstractQueuedLongSynchronizer.java928 protected boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizer
1687 if (!isHeldExclusively()) in signal()
1702 if (!isHeldExclusively()) in signalAll()
1947 if (!isHeldExclusively()) in hasWaiters()
1966 if (!isHeldExclusively()) in getWaitQueueLength()
1986 if (!isHeldExclusively()) in getWaitingThreads()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedLongSynchronizerTest.java29 public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizerTest.Mutex
252 assertFalse(sync.isHeldExclusively()); in testIsHeldExclusively()
261 assertTrue(sync.isHeldExclusively()); in testAcquire()
263 assertFalse(sync.isHeldExclusively()); in testAcquire()
272 assertTrue(sync.isHeldExclusively()); in testTryAcquire()
274 assertFalse(sync.isHeldExclusively()); in testTryAcquire()
539 assertTrue(sync.isHeldExclusively()); in testGetState()
541 assertFalse(sync.isHeldExclusively()); in testGetState()
554 assertTrue(sync.isHeldExclusively()); in testGetState()
557 assertFalse(sync.isHeldExclusively()); in testGetState()
[all …]
DAbstractQueuedSynchronizerTest.java32 @Override public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizerTest.Mutex
255 assertFalse(sync.isHeldExclusively()); in testIsHeldExclusively()
264 assertTrue(sync.isHeldExclusively()); in testAcquire()
266 assertFalse(sync.isHeldExclusively()); in testAcquire()
275 assertTrue(sync.isHeldExclusively()); in testTryAcquire()
277 assertFalse(sync.isHeldExclusively()); in testTryAcquire()
542 assertTrue(sync.isHeldExclusively()); in testGetState()
544 assertFalse(sync.isHeldExclusively()); in testGetState()
557 assertTrue(sync.isHeldExclusively()); in testGetState()
560 assertFalse(sync.isHeldExclusively()); in testGetState()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java595 protected boolean isHeldExclusively() { in isHeldExclusively() method in ThreadPoolExecutor.Worker
616 public boolean isLocked() { return isHeldExclusively(); } in isLocked()