Class God::DriverEventQueue
In: lib/god/driver.rb
Parent: Object

The DriverEventQueue is a simple queue that holds TimedEvent instances in order to maintain the schedule of upcoming events.

Methods

clear   empty?   length   new   pop   push   shutdown   size  

Public Class methods

Public Instance methods

Clear the queue.

Returns nothing.

Returns true if the queue is empty, false if not.

Returns the Integer length of the queue.

Wait until the queue has something due, pop it off the queue, and return it.

Returns the popped event.

Add an event to the queue, wake any waiters if what we added needs to happen sooner than the next pending event.

Returns nothing.

Wake any sleeping threads after setting the sentinel.

Returns nothing.

size()

Alias for length

[Validate]