Class Mongo::Semaphore
In: lib/mongo/semaphore.rb
Parent: Object

This is a semaphore implementation essentially encapsulating the sample code at ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/ConditionVariable.html.

@api private

Methods

broadcast   new   signal   wait  

Public Class methods

Public Instance methods

Waits for the semaphore to be signaled up to timeout seconds. If semaphore is not signaled, returns after timeout seconds.

[Validate]