Searched refs:acquire (Results 1 - 25 of 68) sorted by relevance

123

/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/concurrent/
H A DSyncUtil.java33 /** Method to acquire a Sync without ever throwing an
37 public static void acquire( Sync sync ) method in class:SyncUtil
42 sync.acquire() ;
H A DSync.java63 * gate.acquire(); // block until condition holds
103 * lock.acquire();
113 * lock.acquire();
136 * lock.acquire();
166 * lock.acquire();
193 * a.lock.acquire();
222 * in acquire and attempt(msec) if interruption
248 * it is normally best to just use acquire(), various forms
250 * (but one that would probably never be preferable to using acquire()):
292 * a normal return guarantees that the acquire wa
295 public void acquire() throws InterruptedException; method in interface:Sync
[all...]
H A DMutex.java43 * The lock is free upon construction. Each acquire gets the
55 * acquire/release pairs do not occur in the same method or
86 * p.lock.acquire(); // Prime loop by acquiring first lock.
87 * // (If the acquire fails due to
105 * nextp.lock.acquire(); // get next lock before releasing current
108 * p.lock.release(); // also release current if acquire fails
138 public void acquire() throws InterruptedException { method in class:Mutex
H A DDebugMutex.java43 * The lock is free upon construction. Each acquire gets the
55 * acquire/release pairs do not occur in the same method or
86 * p.lock.acquire(); // Prime loop by acquiring first lock.
87 * // (If the acquire fails due to
105 * nextp.lock.acquire(); // get next lock before releasing current
108 * p.lock.release(); // also release current if acquire fails
131 * that holds the lock to acquire it for a second time, and also an attempt by a thread that
145 public void acquire() throws InterruptedException { method in class:DebugMutex
151 "Attempt to acquire Mutex by thread holding the Mutex" ) ;
H A DCondVar.java76 * mutex.acquire();
93 * mutex.acquire();
111 * mutex.acquire();
131 * mutex.acquire();
181 mutex_.acquire() ;
243 // Must ignore interrupt on re-acquire
270 * and re-acquire of the mutex, and always returns false.
306 // Must ignore interrupt on re-acquire
/openjdk10/hotspot/src/os_cpu/solaris_sparc/vm/
H A DorderAccess_solaris_sparc.inline.hpp48 inline void OrderAccess::acquire() { compiler_barrier(); } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/linux_sparc/vm/
H A DorderAccess_linux_sparc.inline.hpp44 inline void OrderAccess::acquire() { compiler_barrier(); } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/solaris_x86/vm/
H A DorderAccess_solaris_x86.inline.hpp47 inline void OrderAccess::acquire() { compiler_barrier(); } function in class:OrderAccess
/openjdk10/jdk/test/java/util/concurrent/tck/
H A DSemaphoreTest.java73 * A runnable calling acquire
80 lock.acquire();
87 * A runnable calling acquire that expects to be interrupted
93 lock.acquire();
124 acquire() { method in enum:SemaphoreTest.AcquireMethod
125 void acquire(Semaphore s) throws InterruptedException {
126 s.acquire();
130 void acquire(Semaphore s, int permits) throws InterruptedException {
131 s.acquire(permits);
135 void acquire(Semaphor
170 void acquire(Semaphore s) throws InterruptedException { method in class:SemaphoreTest.AcquireMethod
174 void acquire(Semaphore s, int permits) throws InterruptedException { method in class:SemaphoreTest.AcquireMethod
[all...]
H A DAbstractQueuedSynchronizerTest.java60 * acquire tests exercise this as a sample user extension. Other
101 public void acquire() { method in class:AbstractQueuedSynchronizerTest.Mutex
102 acquire(LOCKED);
218 sync.acquire();
312 sync.acquire();
335 sync.acquire();
370 sync.acquire();
395 sync.acquire();
416 sync.acquire();
440 sync.acquire();
[all...]
H A DAbstractQueuedLongSynchronizerTest.java60 * acquire tests exercise this as a sample user extension.
97 public void acquire() { method in class:AbstractQueuedLongSynchronizerTest.Mutex
98 acquire(LOCKED);
215 sync.acquire();
309 sync.acquire();
332 sync.acquire();
367 sync.acquire();
392 sync.acquire();
413 sync.acquire();
437 sync.acquire();
[all...]
/openjdk10/hotspot/src/os_cpu/bsd_zero/vm/
H A DorderAccess_bsd_zero.inline.hpp73 inline void OrderAccess::acquire() { LIGHT_MEM_BARRIER; } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/linux_zero/vm/
H A DorderAccess_linux_zero.inline.hpp73 inline void OrderAccess::acquire() { LIGHT_MEM_BARRIER; } function in class:OrderAccess
/openjdk10/jdk/src/java.desktop/share/classes/sun/java2d/
H A DReentrantContextProviderTL.java88 public final K acquire() { method in class:ReentrantContextProviderTL
105 ctx = ctxProviderCLQ.acquire();
H A DReentrantContextProviderCLQ.java63 public final K acquire() { method in class:ReentrantContextProviderCLQ
H A DReentrantContextProvider.java36 * It supports reentrancy as every call to acquire() provides a new unique context
45 * The acquire() and release() methods are used to retrieve and return the contexts.
70 * ReentrantContextImpl ctx = contextProvider.acquire();
124 public abstract K acquire(); method in class:ReentrantContextProvider
/openjdk10/jdk/src/java.base/share/classes/java/util/concurrent/
H A DSemaphore.java43 * 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...]
/openjdk10/hotspot/src/os_cpu/linux_ppc/vm/
H A DorderAccess_linux_ppc.inline.hpp59 // - acquire orders Load|Store, (maps to lwsync)
79 inline void OrderAccess::acquire() { inlasm_lwsync(); } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/bsd_x86/vm/
H A DorderAccess_bsd_x86.inline.hpp51 inline void OrderAccess::acquire() { compiler_barrier(); } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/linux_x86/vm/
H A DorderAccess_linux_x86.inline.hpp47 inline void OrderAccess::acquire() { compiler_barrier(); } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/aix_ppc/vm/
H A DorderAccess_aix_ppc.inline.hpp55 // - acquire orders Load|Store, (maps to lwsync)
77 inline void OrderAccess::acquire() { inlasm_lwsync(); } function in class:OrderAccess
/openjdk10/hotspot/src/os_cpu/linux_s390/vm/
H A DorderAccess_linux_s390.inline.hpp61 // Release and acquire are empty on z/Architecture, but potential
63 // OrderAccess::acquire.
73 inline void OrderAccess::acquire() { inlasm_zarch_acquire(); } function in class:OrderAccess
/openjdk10/jdk/test/java/util/concurrent/locks/Lock/
H A DMutex.java68 sync.acquire(1);
/openjdk10/hotspot/src/os_cpu/windows_x86/vm/
H A DorderAccess_windows_x86.inline.hpp44 // guaranteed to have acquire release semantics (w.r.t. compiler
46 // for normal acquire release accesses. And all generalized
59 inline void OrderAccess::acquire() { compiler_barrier(); } function in class:OrderAccess
/openjdk10/jdk/test/java/util/concurrent/Semaphore/
H A DRacingReleases.java58 sem.acquire();

Completed in 190 milliseconds

123