Class: Concurrent::RubyExchanger::Node
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Concurrent::Synchronization::Object
|
Defined in: | lib/concurrent-ruby/concurrent/exchanger.rb |
Class Attribute Summary
Synchronization::Object
- Inherited
Class Method Summary
- .new(item) ⇒ Node constructor
Synchronization::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 |
Synchronization::AbstractObject
- Inherited
Instance Method Summary
Synchronization::Object
- Inherited
Synchronization::Volatile
- Included
Synchronization::AbstractObject
- Inherited
Constructor Details
.new(item) ⇒ Node
# File 'lib/concurrent-ruby/concurrent/exchanger.rb', line 142
def initialize(item) super() @Item = item @Latch = Concurrent::CountDownLatch.new self.value = nil end
Instance Method Details
#item
[ GitHub ]# File 'lib/concurrent-ruby/concurrent/exchanger.rb', line 153
def item @Item end
#latch
[ GitHub ]# File 'lib/concurrent-ruby/concurrent/exchanger.rb', line 149
def latch @Latch end