Searched refs:attempt (Results 1 - 4 of 4) sorted by relevance

/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orbutil/concurrent/
H A DSync.java78 * if (cond.attempt(10)) { // try the condition for 10 ms
156 * For example, here is a Cell class that uses attempt to back-off
168 * if (other.lock.attempt(100)) {
195 * if (!b.lock.attempt(0))
222 * in acquire and attempt(msec) if interruption
227 * Timed versions of attempt report failure via return value.
231 * if (!c.attempt(timeval)) throw new TimeoutException(timeval);
259 * if (lock.attempt(0))
265 * if (lock.attempt(waitTime))
304 * Implementations generally can only attempt t
322 public boolean attempt(long msecs) throws InterruptedException; method in interface:Sync
[all...]
H A DMutex.java47 * This implementation makes no attempt to provide any fairness
159 public boolean attempt(long msecs) throws InterruptedException { method in class:Mutex
H A DDebugMutex.java47 * This implementation makes no attempt to provide any fairness
130 * <p>This version adds some debugging capability: it will detect an attempt by a thread
131 * that holds the lock to acquire it for a second time, and also an attempt by a thread that
176 public boolean attempt(long msecs) throws InterruptedException { method in class:DebugMutex
H A DReentrantMutex.java49 * This implementation makes no attempt to provide any fairness
133 * an attempt by a thread that does not hold the mutex to release it.
299 public boolean attempt(long msecs) throws InterruptedException { method in class:ReentrantMutex
306 ORBUtility.dprintTrace( this, "attempt enter: msecs=" +
344 ORBUtility.dprintTrace( this, "attempt exit: " +

Completed in 31 milliseconds