Skip to content

Commit

Permalink
Merge pull request #49 from yuvalif/fix_valgrind_uninitialized_error
Browse files Browse the repository at this point in the history
fix issue #48. valgrind errors
  • Loading branch information
timblechmann committed Feb 21, 2019
2 parents 8314adc + e1fd809 commit 7e23dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/lockfree/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class queue
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);
Expand Down

0 comments on commit 7e23dac

Please sign in to comment.