X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fstatic%2Fwfqueue.h;fp=urcu%2Fstatic%2Fwfqueue.h;h=19314f5f9223498ba45b749c4af678ed607cf2fb;hp=77828ca1d8c046f41d3da76c8f7d5b0253e076ba;hb=75635e2ac36765b49698a32d91767220917de807;hpb=bc727dc3413af8a5a53167df248a51c6ee2f5cb7 diff --git a/urcu/static/wfqueue.h b/urcu/static/wfqueue.h index 77828ca..19314f5 100644 --- a/urcu/static/wfqueue.h +++ b/urcu/static/wfqueue.h @@ -75,7 +75,7 @@ static inline void _cds_wfq_enqueue(struct cds_wfq_queue *q, * structure containing node and setting node->next to NULL before * publication. */ - old_tail = uatomic_xchg(&q->tail, node); + old_tail = uatomic_xchg(&q->tail, &node->next); /* * At this point, dequeuers see a NULL old_tail->next, which indicates * that the queue is being appended to. The following store will append