Creates a new condition variable. Conditions variables can be used to block one or more threads at the same time, until another thread modifies a shared variable (the condition) and signals the condition variable.
Constructor
new()
Create a new condition variable. A thread that waits on a newly created condition variable will block.
Methods
broadcast():Void
Unblocks all of the threads that are blocked on the condition variable at the time of the call. If no threads are blocked on the condition variable at the time of the call, the function does nothing.