Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DAbstractQueuedSynchronizerTest.java34 public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizerTest.DefaultMutex
35 return super.isHeldExclusively(); in isHeldExclusively()
68 mutex.isHeldExclusively(); in testDefaultIsHeldExclusivelyFails()
DAbstractQueuedLongSynchronizerTest.java34 public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizerTest.DefaultMutex
35 return super.isHeldExclusively(); in isHeldExclusively()
68 mutex.isHeldExclusively(); in testDefaultIsHeldExclusivelyFails()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java183 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantLock.Sync
200 return isHeldExclusively() ? getState() : 0; in getHoldCount()
615 return sync.isHeldExclusively(); in isHeldByCurrentThread()
DReentrantReadWriteLock.java371 if (!isHeldExclusively()) in tryRelease()
616 protected final boolean isHeldExclusively() { in isHeldExclusively() method in ReentrantReadWriteLock.Sync
644 return isHeldExclusively() ? exclusiveCount(getState()) : 0; in getWriteHoldCount()
1222 return sync.isHeldExclusively(); in isHeldByCurrentThread()
1297 return sync.isHeldExclusively(); in isWriteLockedByCurrentThread()
DAbstractQueuedSynchronizer.java920 protected boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizer
1472 if (!isHeldExclusively()) in signal()
1487 if (!isHeldExclusively()) in signalAll()
1502 if (isHeldExclusively()) { in enableWait()
1791 if (!isHeldExclusively()) in hasWaiters()
1810 if (!isHeldExclusively()) in getWaitQueueLength()
1830 if (!isHeldExclusively()) in getWaitingThreads()
DAbstractQueuedLongSynchronizer.java554 protected boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizer
1106 if (!isHeldExclusively()) in signal()
1121 if (!isHeldExclusively()) in signalAll()
1136 if (isHeldExclusively()) { in enableWait()
1425 if (!isHeldExclusively()) in hasWaiters()
1444 if (!isHeldExclusively()) in getWaitQueueLength()
1464 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/src/test/java/util/concurrent/tck/
DAbstractQueuedSynchronizerTest.java71 @Override public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedSynchronizerTest.Mutex
309 assertFalse(sync.isHeldExclusively()); in testIsHeldExclusively()
318 assertTrue(sync.isHeldExclusively()); in testAcquire()
320 assertFalse(sync.isHeldExclusively()); in testAcquire()
329 assertTrue(sync.isHeldExclusively()); in testTryAcquire()
331 assertFalse(sync.isHeldExclusively()); in testTryAcquire()
596 assertTrue(sync.isHeldExclusively()); in testGetState()
598 assertFalse(sync.isHeldExclusively()); in testGetState()
611 assertTrue(sync.isHeldExclusively()); in testGetState()
614 assertFalse(sync.isHeldExclusively()); in testGetState()
[all …]
DAbstractQueuedLongSynchronizerTest.java68 public boolean isHeldExclusively() { in isHeldExclusively() method in AbstractQueuedLongSynchronizerTest.Mutex
306 assertFalse(sync.isHeldExclusively()); in testIsHeldExclusively()
315 assertTrue(sync.isHeldExclusively()); in testAcquire()
317 assertFalse(sync.isHeldExclusively()); in testAcquire()
326 assertTrue(sync.isHeldExclusively()); in testTryAcquire()
328 assertFalse(sync.isHeldExclusively()); in testTryAcquire()
593 assertTrue(sync.isHeldExclusively()); in testGetState()
595 assertFalse(sync.isHeldExclusively()); in testGetState()
608 assertTrue(sync.isHeldExclusively()); in testGetState()
611 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.java652 protected boolean isHeldExclusively() { in isHeldExclusively() method in ThreadPoolExecutor.Worker
673 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
/libcore/api/
Dcurrent.txt16855 method protected boolean isHeldExclusively();
16902 method protected boolean isHeldExclusively();