X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fwfcqueue.h;fp=urcu%2Fwfcqueue.h;h=b6be9f3dfaad4ca5bea9db29ad72dd043d1ffada;hp=d9ec5349d7be203da7f80f6e6c0de5cda96e20e9;hb=131a29a6627c8a1aee35491ac43984ebe756909c;hpb=c97c6ce56f28f27216103386eef2f40aeb441645 diff --git a/urcu/wfcqueue.h b/urcu/wfcqueue.h index d9ec534..b6be9f3 100644 --- a/urcu/wfcqueue.h +++ b/urcu/wfcqueue.h @@ -280,6 +280,8 @@ extern enum cds_wfcq_ret __cds_wfcq_splice_nonblocking( * Used by for-like iteration macros: * __cds_wfcq_for_each_blocking() * __cds_wfcq_for_each_blocking_safe() + * + * Returns NULL if queue is empty, first node otherwise. */ extern struct cds_wfcq_node *__cds_wfcq_first_blocking( struct cds_wfcq_head *head, @@ -306,6 +308,9 @@ extern struct cds_wfcq_node *__cds_wfcq_first_nonblocking( * Used by for-like iteration macros: * __cds_wfcq_for_each_blocking() * __cds_wfcq_for_each_blocking_safe() + * + * Returns NULL if reached end of queue, non-NULL next queue node + * otherwise. */ extern struct cds_wfcq_node *__cds_wfcq_next_blocking( struct cds_wfcq_head *head,