class Concurrent::LockFreeStack

def replace_if(head, new_head)

Returns:
  • (true, false) -

Parameters:
  • new_head (Node) --
  • head (Node) --
def replace_if(head, new_head)
  compare_and_set_head head, new_head
end