Searched defs:acquire (Results 1 - 6 of 6) sorted by relevance
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Semaphore.java | 14 * permits. Each {@link #acquire} blocks if necessary until a permit is 29 * available.acquire(); 67 * <p>Before obtaining an item each thread must acquire a permit from 71 * thread to acquire that item. Note that no synchronization lock is 72 * held when {@link #acquire} is called as that would prevent an item 91 * guarantees about the order in which threads acquire permits. In 93 * invoking {@link #acquire} can be allocated a permit ahead of a 97 * #acquire() acquire} methods are selected to obtain permits in the order in 102 * {@code acquire} befor 283 public void acquire() throws InterruptedException { method in class:Semaphore 437 public void acquire(int permits) throws InterruptedException { method in class:Semaphore [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | AbstractQueuedLongSynchronizerTest.java | 37 * acquire tests exercise this as a sample user extension. 74 public void acquire() { method in class:AbstractQueuedLongSynchronizerTest.Mutex 75 acquire(LOCKED); 192 sync.acquire(); 278 sync.acquire(); 301 sync.acquire(); 336 sync.acquire(); 361 sync.acquire(); 382 sync.acquire(); 406 sync.acquire(); [all...] |
H A D | AbstractQueuedSynchronizerTest.java | 37 * acquire tests exercise this as a sample user extension. Other 78 public void acquire() { method in class:AbstractQueuedSynchronizerTest.Mutex 79 acquire(LOCKED); 195 sync.acquire(); 281 sync.acquire(); 304 sync.acquire(); 339 sync.acquire(); 364 sync.acquire(); 385 sync.acquire(); 409 sync.acquire(); [all...] |
H A D | SemaphoreTest.java | 49 * A runnable calling acquire 56 lock.acquire(); 63 * A runnable calling acquire that expects to be interrupted 69 lock.acquire(); 100 acquire() { method in enum:SemaphoreTest.AcquireMethod 101 void acquire(Semaphore s) throws InterruptedException { 102 s.acquire(); 106 void acquire(Semaphore s, int permits) throws InterruptedException { 107 s.acquire(permits); 111 void acquire(Semaphor 144 void acquire(Semaphore s) throws InterruptedException { method in class:SemaphoreTest.AcquireMethod 148 void acquire(Semaphore s, int permits) throws InterruptedException { method in class:SemaphoreTest.AcquireMethod [all...] |
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | AbstractQueuedLongSynchronizer.java | 64 * granted locks etc though. A thread may try to acquire if it is 153 * cancels. To avoid races, acquire methods must 155 * then retry the atomic acquire, and then, 191 * head only as a result of successful acquire. A 224 * re-acquire. And because conditions can only be exclusive, 372 * acquire methods. Also nulls out unused fields for sake of GC 483 // Utilities for various versions of acquire 486 * Cancels an ongoing attempt to acquire. 535 * Checks and updates status for a node that failed to acquire. 537 * control in all acquire loop 945 public final void acquire(long arg) { method in class:AbstractQueuedLongSynchronizer [all...] |
H A D | AbstractQueuedSynchronizer.java | 48 * mechanical sense that when a shared mode acquire succeeds, the next 50 * acquire as well. Threads waiting in the different modes share the 62 * this object, and {@link #acquire}, given this saved state value, 127 * <p id="barging">Because checks in acquire are invoked before 150 * augment this by preceding calls to acquire methods with 157 * synchronizers that can rely on {@code int} state, acquire, and 217 * public void lock() { sync.acquire(1); } 236 * acquire and release methods. 290 * granted locks etc though. A thread may try to acquire if it is 379 * cancels. To avoid races, acquire method 1171 public final void acquire(int arg) { method in class:AbstractQueuedSynchronizer [all...] |
Completed in 77 milliseconds