MCPcopy Create free account
hub / github.com/antlr/codebuff / leave

Method leave

output/java_guava/1.4.19/Monitor.java:847–857  ·  view source on GitHub ↗

Leaves this monitor. May be called only by a thread currently occupying this monitor.

()

Source from the content-addressed store, hash-verified

845
846
847 public void leave() {
848 final ReentrantLock lock = this.lock;
849 try {
850 // No need to signal if we will still be holding the lock when we return
851 if (lock.getHoldCount() == 1) {
852 signalNextWaiter();
853 }
854 } finally {
855 lock.unlock(); // Will throw IllegalMonitorStateException if not held
856 }
857 }
858
859 /**
860 * Returns whether this monitor is using a fair ordering policy.

Callers 15

enterWhenMethod · 0.95
startAsyncMethod · 0.45
stopAsyncMethod · 0.45
awaitRunningMethod · 0.45
awaitTerminatedMethod · 0.45
notifyStartedMethod · 0.45
notifyStoppedMethod · 0.45
notifyFailedMethod · 0.45
addListenerMethod · 0.45
tryStartTimingMethod · 0.45
markReadyMethod · 0.45

Calls 2

signalNextWaiterMethod · 0.95
unlockMethod · 0.45

Tested by

no test coverage detected