Class Listen::Turnstile
In: lib/listen/turnstile.rb
Parent: Object

Allows two threads to wait on eachother.

@note Only two threads can be used with this Turnstile

  because of the current implementation.

Methods

new   signal   wait  

Public Class methods

Initialize the turnstile.

Public Instance methods

Unblocks the waiting thread if there is one.

Blocks the current thread until a signal is received.

[Validate]