Class

ConditionVariable

Extends:

FIXME: This isn’t documented in Nutshell.

Since MonitorMixin.new_cond returns a ConditionVariable, and the example above calls while_wait and signal, this class should be documented.

Classes
Timeout
Public Methods
broadcast Wake up all the waiters.
count_waiters
new
signal Wake up and run the next waiter
wait Create a new timer with the argument timeout, and add the current thread to the list of waiters. Then the thread is stopped. It will be resumed when a corresponding #signal occurs.
wait_until call #wait until the supplied block returns true.
wait_while call #wait while the supplied block returns true.
Private Methods
create_timer
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.