Searched defs:acquire (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DSemaphore.java13 * permits. Each {@link #acquire} blocks if necessary until a permit is
28 * available.acquire();
66 * <p>Before obtaining an item each thread must acquire a permit from
70 * thread to acquire that item. Note that no synchronization lock is
71 * held when {@link #acquire} is called as that would prevent an item
90 * guarantees about the order in which threads acquire permits. In
92 * invoking {@link #acquire} can be allocated a permit ahead of a
96 * #acquire() acquire} methods are selected to obtain permits in the order in
101 * {@code acquire} befor
284 public void acquire() throws InterruptedException { method in class:Semaphore
438 public void acquire(int permits) throws InterruptedException { method in class:Semaphore
[all...]
/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DAbstractQueuedLongSynchronizer.java61 * granted locks etc though. A thread may try to acquire if it is
150 * cancels. To avoid races, acquire methods must
152 * then retry the atomic acquire, and then,
188 * head only as a result of successful acquire. A
221 * re-acquire. And because conditions can only be exclusive,
369 * acquire methods. Also nulls out unused fields for sake of GC
480 // Utilities for various versions of acquire
483 * Cancels an ongoing attempt to acquire.
532 * Checks and updates status for a node that failed to acquire.
534 * control in all acquire loop
943 public final void acquire(long arg) { method in class:AbstractQueuedLongSynchronizer
[all...]
H A DAbstractQueuedSynchronizer.java45 * mechanical sense that when a shared mode acquire succeeds, the next
47 * acquire as well. Threads waiting in the different modes share the
59 * this object, and {@link #acquire}, given this saved state value,
124 * <p><a name="barging">Because checks in acquire are invoked before
151 * augment this by preceding calls to acquire methods with
158 * synchronizers that can rely on <tt>int</tt> state, acquire, and
218 * 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
1172 public final void acquire(int arg) { method in class:AbstractQueuedSynchronizer
[all...]

Completed in 1362 milliseconds