Concurrent::Synchronization::MriLockableObject
@!visibility private @!macro internal_implementation_note
# File lib/concurrent/synchronization/mri_lockable_object.rb, line 26 def initialize(*defaults) super(*defaults) @__lock__ = ::Mutex.new @__condition__ = ::ConditionVariable.new end
# File lib/concurrent/synchronization/mri_lockable_object.rb, line 42 def ns_wait(timeout = nil) @__condition__.wait @__lock__, timeout self end
# File lib/concurrent/synchronization/mri_lockable_object.rb, line 34 def synchronize if @__lock__.owned? yield else @__lock__.synchronize { yield } end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.