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

Method beginWaitingFor

output/java_guava/1.4.17/Monitor.java:1091–1099  ·  view source on GitHub ↗

Records that the current thread is about to wait on the specified guard.

(Guard guard)

Source from the content-addressed store, hash-verified

1089 */
1090
1091 @GuardedBy("lock")
1092 private void beginWaitingFor(Guard guard) {
1093 int waiters = guard.waiterCount++;
1094 if (waiters == 0) {
1095 // push guard onto activeGuards
1096 guard.next = activeGuards;
1097 activeGuards = guard;
1098 }
1099 }
1100
1101 /**
1102 * Records that the current thread is no longer waiting on the specified guard.

Callers 3

awaitMethod · 0.95
awaitUninterruptiblyMethod · 0.95
awaitNanosMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected