X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fwfcqueue.h;h=7e363ea8b526c2fcab8f03cee670bb8ac3052dcf;hb=93aee570e96c48843659caa12667ff7157734532;hp=652b42d3ab5da2adda7027f490af4230460a2448;hpb=96bd49dfcb6476da907cf7ebd9e245014879e9f2;p=userspace-rcu.git diff --git a/urcu/wfcqueue.h b/urcu/wfcqueue.h index 652b42d..7e363ea 100644 --- a/urcu/wfcqueue.h +++ b/urcu/wfcqueue.h @@ -80,6 +80,7 @@ struct cds_wfcq_tail { #define cds_wfcq_node_init _cds_wfcq_node_init #define cds_wfcq_init _cds_wfcq_init +#define cds_wfcq_destroy _cds_wfcq_destroy #define cds_wfcq_empty _cds_wfcq_empty #define cds_wfcq_enqueue _cds_wfcq_enqueue @@ -158,11 +159,19 @@ struct cds_wfcq_tail { extern void cds_wfcq_node_init(struct cds_wfcq_node *node); /* - * cds_wfcq_init: initialize wait-free queue. + * cds_wfcq_init: initialize wait-free queue. Pair with + * cds_wfcq_destroy(). */ extern void cds_wfcq_init(struct cds_wfcq_head *head, struct cds_wfcq_tail *tail); +/* + * cds_wfcq_destroy: destroy wait-free queue. Pair with + * cds_wfcq_init(). + */ +extern void cds_wfcq_destroy(struct cds_wfcq_head *head, + struct cds_wfcq_tail *tail); + /* * cds_wfcq_empty: return whether wait-free queue is empty. *