Class: Concurrent::Edge::LockFreeStack::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/concurrent/edge/lock_free_stack.rb

Direct Known Subclasses

Empty

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, next_node) ⇒ Node

Returns a new instance of Node.



8
9
10
11
# File 'lib/concurrent/edge/lock_free_stack.rb', line 8

def initialize(value, next_node)
  @value     = value
  @next_node = next_node
end

Instance Attribute Details

#next_nodeObject (readonly)

Returns the value of attribute next_node.



6
7
8
# File 'lib/concurrent/edge/lock_free_stack.rb', line 6

def next_node
  @next_node
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/concurrent/edge/lock_free_stack.rb', line 6

def value
  @value
end