synchronized int releaseAll() { try { if (debug) ORBUtility.dprintTrace(this, "releaseAll enter: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); Thread thr = Thread.currentThread(); if (thr != holder_) throw new INTERNAL("Attempt to releaseAll Mutex by thread not holding the Mutex"); int result = counter_; counter_ = 0; holder_ = null; notify(); return result; } finally { if (debug) ORBUtility.dprintTrace(this, "releaseAll exit: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); } }
synchronized int releaseAll() { try { if (debug) ORBUtility.dprintTrace(this, "releaseAll enter: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); Thread thr = Thread.currentThread(); if (thr != holder_) throw new INTERNAL("Attempt to releaseAll Mutex by thread not holding the Mutex"); int result = counter_; counter_ = 0; holder_ = null; notify(); return result; } finally { if (debug) ORBUtility.dprintTrace(this, "releaseAll exit: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); } }
public synchronized void release() { try { if (debug) ORBUtility.dprintTrace(this, "release enter: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); Thread thr = Thread.currentThread(); if (thr != holder_) throw new INTERNAL("Attempt to release Mutex by thread not holding the Mutex"); else counter_--; if (counter_ == 0) { holder_ = null; notify(); } } finally { if (debug) ORBUtility.dprintTrace(this, "release exit: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); } }
public synchronized void release() { try { if (debug) ORBUtility.dprintTrace(this, "release enter: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); Thread thr = Thread.currentThread(); if (thr != holder_) throw new INTERNAL("Attempt to release Mutex by thread not holding the Mutex"); else counter_--; if (counter_ == 0) { holder_ = null; notify(); } } finally { if (debug) ORBUtility.dprintTrace(this, "release exit: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); } }
ORBUtility.dprintTrace(this, "acquire enter: holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); ORBUtility.dprintTrace(this, "acquire exit: holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_);
ORBUtility.dprintTrace(this, "await enter"); ORBUtility.dprintTrace(this, "await exit");
ORBUtility.dprintTrace(this, "await enter"); ORBUtility.dprintTrace(this, "await exit");
ORBUtility.dprintTrace(this, "attempt enter: msecs=" + msecs + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); ORBUtility.dprintTrace(this, "attempt exit: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_);
ORBUtility.dprintTrace(this, "acquire enter: holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); ORBUtility.dprintTrace(this, "acquire exit: holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_);
ORBUtility.dprintTrace(this, "attempt enter: msecs=" + msecs + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); ORBUtility.dprintTrace(this, "attempt exit: " + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_);
ORBUtility.dprintTrace(this, "timedwait enter"); ORBUtility.dprintTrace(this, "timedwait exit");
ORBUtility.dprintTrace(this, "timedwait enter"); ORBUtility.dprintTrace(this, "timedwait exit");
ORBUtility.dprintTrace(this, "acquireAll enter: count=" + count + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); ORBUtility.dprintTrace(this, "acquireAll exit: count=" + count + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_);
ORBUtility.dprintTrace(this, "acquireAll enter: count=" + count + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_); ORBUtility.dprintTrace(this, "acquireAll exit: count=" + count + " holder_=" + ORBUtility.getThreadName(holder_) + " counter_=" + counter_);