Class: Concurrent::LockFreeStack::Node
- Inherits:
-
Object
- Object
- Concurrent::LockFreeStack::Node
- Defined in:
- lib/concurrent/edge/lock_free_stack.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_node ⇒ Object
readonly
TODO (pitr-ch 20-Dec-2016): Could be unified with Stack class?.
-
#value ⇒ Object
TODO (pitr-ch 20-Dec-2016): Could be unified with Stack class?.
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.
13 14 15 16 |
# File 'lib/concurrent/edge/lock_free_stack.rb', line 13 def initialize(value, next_node) @value = value @next_node = next_node end |
Instance Attribute Details
#next_node ⇒ Object (readonly)
TODO (pitr-ch 20-Dec-2016): Could be unified with Stack class?
9 10 11 |
# File 'lib/concurrent/edge/lock_free_stack.rb', line 9 def next_node @next_node end |
#value ⇒ Object
TODO (pitr-ch 20-Dec-2016): Could be unified with Stack class?
9 10 11 |
# File 'lib/concurrent/edge/lock_free_stack.rb', line 9 def value @value end |