X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=urcu%2Fstatic%2Frculfstack.h;h=3f48b7eabbc33c10a626400fb28dc6d4545c4776;hb=c5f52d0c6b1890f0c66f172665ae6793634f5287;hp=7caf3c8c0d15f344170c33873f4cb6f4b4d107fa;hpb=af7c2dbeac32c663b64ad05e4eca70e18784463b;p=urcu.git diff --git a/urcu/static/rculfstack.h b/urcu/static/rculfstack.h index 7caf3c8..3f48b7e 100644 --- a/urcu/static/rculfstack.h +++ b/urcu/static/rculfstack.h @@ -26,22 +26,25 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#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 +70,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) {