Class: Concurrent::Edge::LockFreeStack::Node
- Inherits:
-
Object
- Object
- Concurrent::Edge::LockFreeStack::Node
- Defined in:
- lib/concurrent/edge/lock_free_stack.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_node ⇒ Object
readonly
Returns the value of attribute next_node.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, next_node) ⇒ Node
constructor
A new instance of Node.
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_node ⇒ Object (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 |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/concurrent/edge/lock_free_stack.rb', line 6 def value @value end |