Home
last modified time | relevance | path

Searched refs:acquire (Results 1 – 14 of 14) 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() enumConstant
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 …]
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 …]
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 …]
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java57 lock.acquire(); in realRun()
70 lock.acquire(); in realRun()
101 acquire() { in acquire() method
102 void acquire(Semaphore s) throws InterruptedException { in acquire() method
103 s.acquire(); in acquire()
107 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() method
108 s.acquire(permits); in acquireN()
112 void acquire(Semaphore s) { in acquireUninterruptibly() method
117 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() method
122 void acquire(Semaphore s) { in tryAcquire() method
[all …]
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 …]
DAbstractQueuedLongSynchronizerTest.java74 public void acquire() { in acquire() method in AbstractQueuedLongSynchronizerTest.Mutex
75 acquire(LOCKED); in acquire()
192 sync.acquire(); in assertHasWaitersUnlocked()
286 sync.acquire(); in testAcquire()
309 sync.acquire(); in testHasQueuedThreads()
344 sync.acquire(); in testIsQueued()
369 sync.acquire(); in testGetFirstQueuedThread()
390 sync.acquire(); in testHasContended()
414 sync.acquire(); in testGetQueuedThreads()
442 sync.acquire(); in testGetExclusiveQueuedThreads()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedSynchronizer.java636 final int acquire(Node node, int arg, boolean shared, in acquire() method in AbstractQueuedSynchronizer
936 public final void acquire(int arg) { in acquire() method in AbstractQueuedSynchronizer
938 acquire(null, arg, false, false, false, 0L); in acquire()
958 (!tryAcquire(arg) && acquire(null, arg, false, true, false, 0L) < 0)) in acquireInterruptibly()
986 int stat = acquire(null, arg, false, true, true, in tryAcquireNanos()
1027 acquire(null, arg, true, false, false, 0L); in acquireShared()
1047 acquire(null, arg, true, true, false, 0L) < 0)) in acquireSharedInterruptibly()
1074 int stat = acquire(null, arg, true, true, true, in tryAcquireSharedNanos()
1589 acquire(node, savedState, false, false, false, 0L); in awaitUninterruptibly()
1634 acquire(node, savedState, false, false, false, 0L); in await()
[all …]
DAbstractQueuedLongSynchronizer.java271 final int acquire(Node node, long arg, boolean shared, in acquire() method in AbstractQueuedLongSynchronizer
570 public final void acquire(long arg) { in acquire() method in AbstractQueuedLongSynchronizer
572 acquire(null, arg, false, false, false, 0L); in acquire()
592 (!tryAcquire(arg) && acquire(null, arg, false, true, false, 0L) < 0)) in acquireInterruptibly()
620 int stat = acquire(null, arg, false, true, true, in tryAcquireNanos()
661 acquire(null, arg, true, false, false, 0L); in acquireShared()
681 acquire(null, arg, true, true, false, 0L) < 0)) in acquireSharedInterruptibly()
708 int stat = acquire(null, arg, true, true, true, in tryAcquireSharedNanos()
1223 acquire(node, savedState, false, false, false, 0L); in awaitUninterruptibly()
1268 acquire(node, savedState, false, false, false, 0L); in await()
[all …]
DReentrantLock.java153 acquire(1); in lock()
DReentrantReadWriteLock.java959 sync.acquire(1); in lock()
/libcore/ojluni/src/main/java/java/util/concurrent/
DSemaphore.java317 public void acquire() throws InterruptedException { in acquire() method in Semaphore
473 public void acquire(int permits) throws InterruptedException { in acquire() method in Semaphore
DThreadPoolExecutor.java670 public void lock() { acquire(1); } in lock()
/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/api/
Dcurrent.txt16294 method public void acquire() throws java.lang.InterruptedException;
16295 method public void acquire(int) throws java.lang.InterruptedException;
16838 method public final void acquire(long);
16885 method public final void acquire(int);