X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=wfstack.c;h=c8bd7e6214211190be827474c301718882daf7c9;hp=f0bae57fe5982d77f1047f91b766464bfdaa6768;hb=7eba9f8868d01401bc9b09ab2764bd371b783ad1;hpb=c7ba06ba1bd70d77a6530503cf216d3a9878d672 diff --git a/wfstack.c b/wfstack.c index f0bae57..c8bd7e6 100644 --- a/wfstack.c +++ b/wfstack.c @@ -53,6 +53,12 @@ struct cds_wfs_node *cds_wfs_pop_blocking(struct cds_wfs_stack *s) return _cds_wfs_pop_blocking(s); } +struct cds_wfs_node * + cds_wfs_pop_with_state_blocking(struct cds_wfs_stack *s, int *state) +{ + return _cds_wfs_pop_with_state_blocking(s, state); +} + struct cds_wfs_head *cds_wfs_pop_all_blocking(struct cds_wfs_stack *s) { return _cds_wfs_pop_all_blocking(s); @@ -68,6 +74,11 @@ struct cds_wfs_node *cds_wfs_next_blocking(struct cds_wfs_node *node) return _cds_wfs_next_blocking(node); } +struct cds_wfs_node *cds_wfs_next_nonblocking(struct cds_wfs_node *node) +{ + return _cds_wfs_next_nonblocking(node); +} + void cds_wfs_pop_lock(struct cds_wfs_stack *s) { _cds_wfs_pop_lock(s); @@ -83,6 +94,24 @@ struct cds_wfs_node *__cds_wfs_pop_blocking(struct cds_wfs_stack *s) return ___cds_wfs_pop_blocking(s); } +struct cds_wfs_node * + __cds_wfs_pop_with_state_blocking(struct cds_wfs_stack *s, int *state) +{ + return ___cds_wfs_pop_with_state_blocking(s, state); +} + +struct cds_wfs_node *__cds_wfs_pop_nonblocking(struct cds_wfs_stack *s) +{ + return ___cds_wfs_pop_nonblocking(s); +} + +struct cds_wfs_node * + __cds_wfs_pop_with_state_nonblocking(struct cds_wfs_stack *s, + int *state) +{ + return ___cds_wfs_pop_with_state_nonblocking(s, state); +} + struct cds_wfs_head *__cds_wfs_pop_all(struct cds_wfs_stack *s) { return ___cds_wfs_pop_all(s);