Methods

Files

Class/Module Index [+]

Quicksearch

Concurrent::Edge::LockFreeLinkedSet::Tail

Internal sentinel node for the Tail. It is always greater than all other nodes, and it is self-referential; meaning its successor is a self-loop.

Public Class Methods

new(_data = nil, _succ = nil) click to toggle source
# File lib/concurrent/edge/lock_free_linked_set/node.rb, line 51
def initialize(_data = nil, _succ = nil)
  @Successor_reference = AtomicMarkableReference.new self
end

Public Instance Methods

<=>(_other) click to toggle source

Always greater than other nodes. This means that traversal will end at the tail node since we are comparing node size in the traversal.

# File lib/concurrent/edge/lock_free_linked_set/node.rb, line 57
def <=>(_other)
  1
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.