X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fstatic%2Frculfstack.h;h=ba26231e87206371965c653189596137abb818cd;hb=e7385b904e9fb77e94a85a7c0d092cc6039dd948;hp=99d3d4ccc92f8cd22011d099417986e274e08d73;hpb=a2e7bf9ce5de5113c7f59c380b0087e291cd603d;p=urcu.git diff --git a/urcu/static/rculfstack.h b/urcu/static/rculfstack.h index 99d3d4c..ba26231 100644 --- a/urcu/static/rculfstack.h +++ b/urcu/static/rculfstack.h @@ -27,21 +27,23 @@ */ #include -/* A urcu implementation header should be already included. */ #ifdef __cplusplus extern "C" { #endif +static inline void _cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node) { } +static inline void _cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s) { s->head = NULL; } +static inline void _cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node) { struct cds_lfs_node_rcu *head = NULL; @@ -67,6 +69,7 @@ void _cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *nod * node or modifying the cds_lfs_node_rcu structure. * Returns NULL if stack is empty. */ +static inline struct cds_lfs_node_rcu * _cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s) {