Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java44 lock.acquire(); in realRun()
57 lock.acquire(); in realRun()
88 acquire() { in acquire() method
89 void acquire(Semaphore s) throws InterruptedException { in acquire() method
90 s.acquire(); in acquire()
94 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() method
95 s.acquire(permits); in acquireN()
99 void acquire(Semaphore s) { in acquireUninterruptibly() method
104 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() method
109 void acquire(Semaphore s) { in tryAcquire() method
[all …]
DAbstractQueuedLongSynchronizerTest.java58 public void acquire() { in acquire() method in AbstractQueuedLongSynchronizerTest.Mutex
59 acquire(LOCKED); in acquire()
176 sync.acquire(); in assertHasWaitersUnlocked()
260 sync.acquire(); in testAcquire()
283 sync.acquire(); in testHasQueuedThreads()
318 sync.acquire(); in testIsQueued()
343 sync.acquire(); in testGetFirstQueuedThread()
364 sync.acquire(); in testHasContended()
388 sync.acquire(); in testGetQueuedThreads()
416 sync.acquire(); in testGetExclusiveQueuedThreads()
[all …]
DAbstractQueuedSynchronizerTest.java62 public void acquire() { in acquire() method in AbstractQueuedSynchronizerTest.Mutex
63 acquire(LOCKED); in acquire()
179 sync.acquire(); in assertHasWaitersUnlocked()
263 sync.acquire(); in testAcquire()
286 sync.acquire(); in testHasQueuedThreads()
321 sync.acquire(); in testIsQueued()
346 sync.acquire(); in testGetFirstQueuedThread()
367 sync.acquire(); in testHasContended()
391 sync.acquire(); in testGetQueuedThreads()
419 sync.acquire(); in testGetExclusiveQueuedThreads()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java282 public void acquire() throws InterruptedException { in acquire() method in Semaphore
436 public void acquire(int permits) throws InterruptedException { in acquire() method in Semaphore
DThreadPoolExecutor.java613 public void lock() { acquire(1); } in lock()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java180 acquire(1); in lock()
195 acquire(1); in lock()
DReentrantReadWriteLock.java915 sync.acquire(1); in lock()
DAbstractQueuedSynchronizer.java1174 public final void acquire(int arg) { in acquire() method in AbstractQueuedSynchronizer
DAbstractQueuedLongSynchronizer.java944 public final void acquire(long arg) { in acquire() method in AbstractQueuedLongSynchronizer
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java324 sem.acquire(); in test_getState()
349 sem.acquire(); in test_getState()
363 sem.acquire(); in test_getState()