class Concurrent::Synchronization::Lock
TODO (pitr-ch 04-Dec-2016): should be in edge
Public Instance Methods
broadcast()
click to toggle source
# File lib/concurrent/synchronization/lock.rb, line 27 def broadcast synchronize { ns_broadcast } end
signal()
click to toggle source
# File lib/concurrent/synchronization/lock.rb, line 21 def signal synchronize { ns_signal } end
wait(timeout = nil)
click to toggle source
TODO use JavaReentrantLock on JRuby
# File lib/concurrent/synchronization/lock.rb, line 9 def wait(timeout = nil) synchronize { ns_wait(timeout) } end
wait_until(timeout = nil, &condition)
click to toggle source
# File lib/concurrent/synchronization/lock.rb, line 15 def wait_until(timeout = nil, &condition) synchronize { ns_wait_until(timeout, &condition) } end