mirror of https://github.com/ceph/ceph
12 lines
495 B
Diff
12 lines
495 B
Diff
--- a/boost/lockfree/queue.hpp
|
|
+++ b/boost/lockfree/queue.hpp
|
|
@@ -108,7 +108,7 @@
|
|
typedef typename detail::select_tagged_handle<node, node_based>::handle_type handle_type;
|
|
|
|
node(T const & v, handle_type null_handle):
|
|
- data(v)//, next(tagged_node_handle(0, 0))
|
|
+ next(tagged_node_handle(null_handle, 0)), data(v)
|
|
{
|
|
/* increment tag to avoid ABA problem */
|
|
tagged_node_handle old_next = next.load(memory_order_relaxed);
|