Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/concurrent/tck/
DSemaphoreTest.java80 lock.acquire(); in realRun()
93 lock.acquire(); in realRun()
124 acquire() { in acquire() method
125 void acquire(Semaphore s) throws InterruptedException { in acquire() method
126 s.acquire(); in acquire()
130 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() method
131 s.acquire(permits); in acquireN()
135 void acquire(Semaphore s) { in acquireUninterruptibly() method
140 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() method
145 void acquire(Semaphore s) { in tryAcquire() method
[all …]
DAbstractQueuedLongSynchronizerTest.java97 public void acquire() { in acquire() method in AbstractQueuedLongSynchronizerTest.Mutex
98 acquire(LOCKED); in acquire()
220 sync.acquire(); in assertHasWaitersUnlocked()
314 sync.acquire(); in testAcquire()
337 sync.acquire(); in testHasQueuedThreads()
372 sync.acquire(); in testIsQueued()
397 sync.acquire(); in testGetFirstQueuedThread()
418 sync.acquire(); in testHasContended()
442 sync.acquire(); in testGetQueuedThreads()
470 sync.acquire(); in testGetExclusiveQueuedThreads()
[all …]
DAbstractQueuedSynchronizerTest.java101 public void acquire() { in acquire() method in AbstractQueuedSynchronizerTest.Mutex
102 acquire(LOCKED); in acquire()
223 sync.acquire(); in assertHasWaitersUnlocked()
317 sync.acquire(); in testAcquire()
340 sync.acquire(); in testHasQueuedThreads()
375 sync.acquire(); in testIsQueued()
400 sync.acquire(); in testGetFirstQueuedThread()
421 sync.acquire(); in testHasContended()
445 sync.acquire(); in testGetQueuedThreads()
473 sync.acquire(); in testGetExclusiveQueuedThreads()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java78 public void acquire() { in acquire() method in AbstractQueuedSynchronizerTest.Mutex
79 acquire(LOCKED); in acquire()
195 sync.acquire(); in assertHasWaitersUnlocked()
289 sync.acquire(); in testAcquire()
312 sync.acquire(); in testHasQueuedThreads()
347 sync.acquire(); in testIsQueued()
372 sync.acquire(); in testGetFirstQueuedThread()
393 sync.acquire(); in testHasContended()
417 sync.acquire(); in testGetQueuedThreads()
445 sync.acquire(); in testGetExclusiveQueuedThreads()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java216 acquire(1); in lock()
231 acquire(1); in lock()
DReentrantReadWriteLock.java950 sync.acquire(1); in lock()
DAbstractQueuedLongSynchronizer.java755 public final void acquire(long arg) { in acquire() method in AbstractQueuedLongSynchronizer
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java325 sem.acquire(); in test_getState()
350 sem.acquire(); in test_getState()
364 sem.acquire(); in test_getState()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java667 public void lock() { acquire(1); } in lock()