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

Method await

output/java_guava/1.4.16/Monitor.java:1130–1143  ·  view source on GitHub ↗
(Guard guard, boolean signalBeforeWaiting)

Source from the content-addressed store, hash-verified

1128 */
1129
1130 @GuardedBy("lock")
1131 private void await(Guard guard, boolean signalBeforeWaiting) throws InterruptedException {
1132 if (signalBeforeWaiting) {
1133 signalNextWaiter();
1134 }
1135 beginWaitingFor(guard);
1136 try {
1137 do {
1138 guard.condition.await();
1139 } while (!guard.isSatisfied());
1140 } finally {
1141 endWaitingFor(guard);
1142 }
1143 }
1144
1145 @GuardedBy("lock")
1146 private void awaitUninterruptibly(Guard guard, boolean signalBeforeWaiting) {

Callers 3

enterWhenMethod · 0.95
waitForMethod · 0.95
awaitUninterruptiblyMethod · 0.45

Calls 4

signalNextWaiterMethod · 0.95
beginWaitingForMethod · 0.95
endWaitingForMethod · 0.95
isSatisfiedMethod · 0.45

Tested by

no test coverage detected