class Concurrent::LockFreeStack
def push(value)
-
(self)-
Parameters:
-
value(Object) --
def push(value) while true current_head = head return self if compare_and_set_head current_head, Node[value, current_head] end end
(self)
-
value
(Object)
--
def push(value) while true current_head = head return self if compare_and_set_head current_head, Node[value, current_head] end end