Class: Concurrent::LockFreeStack::Node
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb |
Class Method Summary
- .new(value, next_node) ⇒ Node constructor
Instance Attribute Summary
- #next_node ⇒ Node readonly
- #value ⇒ Object rw
-
#value=(value)
rw
private
allow to nil-ify to free GC when the entry is no longer relevant, not synchronised.
Constructor Details
.new(value, next_node) ⇒ Node
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 23
def initialize(value, next_node) @value = value @next_node = next_node end
Instance Attribute Details
#next_node ⇒ Node
(readonly)
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 14
attr_reader :next_node
#value ⇒ Object (rw)
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 17
attr_reader :value
#value=(value) (rw, private)
allow to nil-ify to free GC when the entry is no longer relevant, not synchronised
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 21
attr_writer :value