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  

Attributes

queue  [RW] 

Public Class methods

Initialize the turnstile.

Public Instance methods

Unblocks the waiting thread if any.

Blocks the current thread until a signal is received.

[Validate]