Files

Class/Module Index [+]

Quicksearch

Concurrent::Synchronization::MonitorObject

@!visibility private @!macro internal_implementation_note

Public Class Methods

new() click to toggle source
# File lib/concurrent/synchronization/monitor_object.rb, line 9
def initialize
  @__lock__      = ::Monitor.new
  @__condition__ = @__lock__.new_cond
end

Protected Instance Methods

ns_wait(timeout = nil) click to toggle source
# File lib/concurrent/synchronization/monitor_object.rb, line 20
def ns_wait(timeout = nil)
  @__condition__.wait timeout
  self
end
synchronize() click to toggle source
# File lib/concurrent/synchronization/monitor_object.rb, line 16
def synchronize
  @__lock__.synchronize { yield }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.