Sha256: 591dcbc79071a0e6fc33572cda02dbdf7dc3b0f54bb7f00da9bbdfc96e016ba9
Contents?: true
Size: 679 Bytes
Versions: 104
Compression:
Stored size: 679 Bytes
Contents
module Concurrent module Synchronization # @!visibility private # TODO (pitr-ch 04-Dec-2016): should be in edge 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
104 entries across 95 versions & 24 rubygems