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

Method waitFor

output/java_guava/1.4.19/Monitor.java:756–763  ·  view source on GitHub ↗

Waits for the guard to be satisfied. Waits indefinitely, but may be interrupted. May be called only by a thread currently occupying this monitor. @throws InterruptedException if interrupted while waiting

(Guard guard)

Source from the content-addressed store, hash-verified

754
755
756 public void waitFor(Guard guard) throws InterruptedException {
757 if (! ((guard.monitor == this) & lock.isHeldByCurrentThread())) {
758 throw new IllegalMonitorStateException();
759 }
760 if (!guard.isSatisfied()) {
761 await(guard, true);
762 }
763 }
764
765 /**
766 * Waits for the guard to be satisfied. Waits indefinitely. May be called only by a thread

Callers

nothing calls this directly

Calls 4

awaitMethod · 0.95
toSafeNanosMethod · 0.95
awaitNanosMethod · 0.95
isSatisfiedMethod · 0.45

Tested by

no test coverage detected