Class: Concurrent::Synchronization::MutexLockableObject
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Concurrent::Synchronization::AbstractLockableObject
|
Defined in: | lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb |
Overview
Note:
**Private Implementation:** This abstraction is a private, internal implementation detail. It should never be used directly.
Class Attribute Summary
Object
- Inherited
Class Method Summary
- .new ⇒ MutexLockableObject constructor
Object
- Inherited
.atomic_attribute?, .atomic_attributes, | |
.attr_atomic | Creates methods for reading and writing to a instance variable with volatile (Java) semantic as |
.attr_volatile | Creates methods for reading and writing (as |
.ensure_safe_initialization_when_final_fields_are_present | For testing purposes, quite slow. |
.new | Has to be called by children. |
.safe_initialization!, .define_initialize_atomic_fields |
AbstractObject
- Inherited
Instance Method Summary
Constructor Details
.new ⇒ MutexLockableObject
# File 'lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb', line 30
def initialize super() @__Lock__ = ::Mutex.new @__Condition__ = ::ConditionVariable.new end