Ticket #8395: lockfree.patch
File lockfree.patch, 555 bytes (added by , 10 years ago) |
---|
-
queue.hpp
old new 97 97 typedef typename detail::select_tagged_handle<node, node_based>::handle_type handle_type; 98 98 99 99 node(T const & v, handle_type null_handle): 100 data(v) //, next(tagged_node_handle(0, 0))100 data(v), next(tagged_node_handle(0, 0)) 101 101 { 102 102 /* increment tag to avoid ABA problem */ 103 103 tagged_node_handle old_next = next.load(memory_order_relaxed);