X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fwfcqueue.h;fp=urcu%2Fwfcqueue.h;h=6c6ebba9e4453257da70484cecc6840bbdab0364;hp=c65780e35887d93915849d7af4cff3e5bcc28b98;hb=200d100e05ed8e10c47f971939042f2406df92ef;hpb=b4edfa8157bb45827c3236809e550b4d13c0ae22 diff --git a/urcu/wfcqueue.h b/urcu/wfcqueue.h index c65780e..6c6ebba 100644 --- a/urcu/wfcqueue.h +++ b/urcu/wfcqueue.h @@ -135,6 +135,7 @@ struct cds_wfcq_tail { #define cds_wfcq_node_init _cds_wfcq_node_init #define cds_wfcq_init _cds_wfcq_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 @@ -213,13 +214,22 @@ 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_init: initialize wait-free queue. + * 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_init: initialize wait-free queue (without lock). Don't + * pair with any destroy function. */ extern void __cds_wfcq_init(struct __cds_wfcq_head *head, struct cds_wfcq_tail *tail);