Module: Concurrent::Synchronization
- Defined in:
- lib/concurrent-ruby/concurrent/synchronization.rb,
lib/concurrent-ruby/concurrent/synchronization/lock.rb,
lib/concurrent-ruby/concurrent/synchronization/object.rb,
lib/concurrent-ruby/concurrent/synchronization/volatile.rb,
lib/concurrent-ruby/concurrent/synchronization/condition.rb,
lib/concurrent-ruby/concurrent/synchronization/mri_object.rb,
lib/concurrent-ruby/concurrent/synchronization/rbx_object.rb,
lib/concurrent-ruby/concurrent/synchronization/jruby_object.rb,
lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb,
lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb,
lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb,
lib/concurrent-ruby/concurrent/synchronization/truffleruby_object.rb,
lib/concurrent-ruby/concurrent/synchronization/rbx_lockable_object.rb,
lib/concurrent-ruby/concurrent/synchronization/jruby_lockable_object.rb,
lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb,
lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb
Overview
noinspection RubyInstanceVariableNamingConvention
Defined Under Namespace
Classes: Object
Constant Summary collapse
- Volatile =
Volatile adds the attr_volatile class method when included.
foo = Foo.new foo.bar => 1 foo.bar = 2 => 2
case when Concurrent.on_cruby? MriAttrVolatile when Concurrent.on_jruby? JRubyAttrVolatile when Concurrent.on_rbx? RbxAttrVolatile when Concurrent.on_truffleruby? TruffleRubyAttrVolatile else MriAttrVolatile end
Instance Method Summary collapse
- #broadcast ⇒ Object
- #initialize(*args, &block) ⇒ Object
- #signal ⇒ Object
- #synchronize ⇒ Object
- #wait(timeout = nil) ⇒ Object
- #wait_until(timeout = nil, &condition) ⇒ Object
Instance Method Details
#broadcast ⇒ Object
|
# File 'lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb', line 67
|
#initialize(*args, &block) ⇒ Object
|
# File 'lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb', line 52
|
#signal ⇒ Object
|
# File 'lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb', line 64
|
#synchronize ⇒ Object
|
# File 'lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb', line 55
|
#wait(timeout = nil) ⇒ Object
|
# File 'lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb', line 61
|
#wait_until(timeout = nil, &condition) ⇒ Object
|
# File 'lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb', line 58
|