getWaitingThreads
fun getWaitingThreads(condition: AbstractQueuedSynchronizer.ConditionObject): MutableCollection<Job>
Returns a collection containing those threads that may be waiting on the given condition associated with this synchronizer. Because the actual set of threads may change dynamically while constructing this result, the returned collection is only a best-effort estimate. The elements of the returned collection are in no particular order.
Return
the collection of threads
Parameters
condition
the condition
Throws
if exclusive synchronization is not held
if the given condition is not associated with this synchronizer
if the condition is null