From: Mathieu Desnoyers Date: Sun, 14 Oct 2012 15:59:31 +0000 (-0400) Subject: wfcqueue: remove ancient comment X-Git-Tag: v0.8.0~187 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=6e3319a2481eea847224b53ce8c2bd1571b42bf8 wfcqueue: remove ancient comment This comment is a leftover from wfqueue and is now inappropriate in the context of wfcqueue: the dequeue operation busy-waits if it sees a NULL next pointer from a node that is not the tail node. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/static/wfcqueue.h b/urcu/static/wfcqueue.h index 2ca9eeb..4a9003e 100644 --- a/urcu/static/wfcqueue.h +++ b/urcu/static/wfcqueue.h @@ -257,11 +257,6 @@ ___cds_wfcq_next_blocking(struct cds_wfcq_head *head, /* * __cds_wfcq_dequeue_blocking: dequeue a node from the queue. * - * No need to go on a waitqueue here, as there is no possible state in which the - * list could cause dequeue to busy-loop needlessly while waiting for another - * thread to be scheduled. The queue appears empty until tail->next is set by - * enqueue. - * * Content written into the node before enqueue is guaranteed to be * consistent, but no other memory ordering is ensured. * It is valid to reuse and free a dequeued node immediately.