123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::LockFreeStack::Node

Relationships & Source Files
Inherits: Object
Defined in: lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(value, next_node) ⇒ Node

[ GitHub ]

  
# 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_nodeNode (readonly)

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 14

attr_reader :next_node

#valueObject (rw)

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 21

attr_writer :value