Sha256: 9c4e777b9ffeb76a83cad6f322d52d1e530a5f99fb57b92d8fbd88bcf535ad73
Contents?: true
Size: 599 Bytes
Versions: 56
Compression:
Stored size: 599 Bytes
Contents
module Concurrent module Synchronization class Lock < LockableObject # TODO use JavaReentrantLock on JRuby public :synchronize def wait(timeout = nil) synchronize { ns_wait(timeout) } end public :ns_wait def wait_until(timeout = nil, &condition) synchronize { ns_wait_until(timeout, &condition) } end public :ns_wait_until def signal synchronize { ns_signal } end public :ns_signal def broadcast synchronize { ns_broadcast } end public :ns_broadcast end end end
Version data entries
56 entries across 53 versions & 16 rubygems