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

Method hasWaiters

output/java_guava/1.4.17/Monitor.java:944–946  ·  view source on GitHub ↗

Queries whether any threads are waiting for the given guard to become satisfied. Note that because timeouts and interrupts may occur at any time, a true return does not guarantee that the guard becoming satisfied in the future will awaken any threads. This method is designed primarily for us

(Guard guard)

Source from the content-addressed store, hash-verified

942
943
944 public boolean hasWaiters(Guard guard) {
945 return getWaitQueueLength(guard) > 0;
946 }
947
948 /**
949 * Returns an estimate of the number of threads waiting for the given guard to become satisfied.

Callers

nothing calls this directly

Calls 1

getWaitQueueLengthMethod · 0.95

Tested by

no test coverage detected