From 6e3319a2481eea847224b53ce8c2bd1571b42bf8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 14 Oct 2012 11:59:31 -0400 Subject: [PATCH] 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 --- urcu/static/wfcqueue.h | 5 ----- 1 file changed, 5 deletions(-) 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. -- 2.34.1