Searched defs:acquire (Results 1 - 6 of 6) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | Semaphore.java | 43 * permits. Each {@link #acquire} blocks if necessary until a permit is 58 * available.acquire(); 96 * <p>Before obtaining an item each thread must acquire a permit from 100 * thread to acquire that item. Note that no synchronization lock is 101 * held when {@link #acquire} is called as that would prevent an item 120 * guarantees about the order in which threads acquire permits. In 122 * invoking {@link #acquire} can be allocated a permit ahead of a 126 * #acquire() acquire} methods are selected to obtain permits in the order in 131 * {@code acquire} befor 317 public void acquire() throws InterruptedException { method in class:Semaphore 473 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(); 286 sync.acquire(); 309 sync.acquire(); 344 sync.acquire(); 369 sync.acquire(); 390 sync.acquire(); 414 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(); 289 sync.acquire(); 312 sync.acquire(); 347 sync.acquire(); 372 sync.acquire(); 393 sync.acquire(); 417 sync.acquire(); [all...] |
H A D | SemaphoreTest.java | 50 * A runnable calling acquire 57 lock.acquire(); 64 * A runnable calling acquire that expects to be interrupted 70 lock.acquire(); 101 acquire() { method in enum:SemaphoreTest.AcquireMethod 102 void acquire(Semaphore s) throws InterruptedException { 103 s.acquire(); 107 void acquire(Semaphore s, int permits) throws InterruptedException { 108 s.acquire(permits); 112 void acquire(Semaphor 145 void acquire(Semaphore s) throws InterruptedException { method in class:SemaphoreTest.AcquireMethod 149 void acquire(Semaphore s, int permits) throws InterruptedException { method in class:SemaphoreTest.AcquireMethod [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
H A D | AbstractQueuedLongSynchronizer.java | 188 * acquire methods. Also nulls out unused fields for sake of GC 301 // Utilities for various versions of acquire 304 * Cancels an ongoing attempt to acquire. 353 * Checks and updates status for a node that failed to acquire. 355 * control in all acquire loops. Requires that pred == node.prev. 382 * retry to make sure it cannot acquire before parking. 407 * Various flavors of acquire, varying in exclusive/shared and 417 * queue. Used by condition wait methods as well as acquire. 420 * @param arg the acquire argument 445 * @param arg the acquire argumen 755 public final void acquire(long arg) { method in class:AbstractQueuedLongSynchronizer [all...] |
H A D | AbstractQueuedSynchronizer.java | 72 * mechanical sense that when a shared mode acquire succeeds, the next 74 * acquire as well. Threads waiting in the different modes share the 86 * this object, and {@link #acquire}, given this saved state value, 151 * <p id="barging">Because checks in acquire are invoked before 174 * augment this by preceding calls to acquire methods with 181 * synchronizers that can rely on {@code int} state, acquire, and 241 * public void lock() { sync.acquire(1); } 260 * acquire and release methods. 314 * granted locks etc though. A thread may try to acquire if it is 403 * cancels. To avoid races, acquire method 1221 public final void acquire(int arg) { method in class:AbstractQueuedSynchronizer [all...] |
Completed in 8327 milliseconds