class Concurrent::LockFreeStack
def replace_if(head, new_head)
-
(true, false)
-
Parameters:
-
new_head
(Node
) -- -
head
(Node
) --
def replace_if(head, new_head) compare_and_set_head head, new_head end
(true, false)
-
new_head
(Node
)
--
head
(Node
)
--
def replace_if(head, new_head) compare_and_set_head head, new_head end