From: Mathieu Desnoyers Date: Fri, 1 Jul 2011 20:17:14 +0000 (-0400) Subject: wfstack: header implementation should be defined as static inline X-Git-Tag: v0.6.5~70 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=756a0322c02c262465e4b0bcbfd7ed6d632b82c2;p=userspace-rcu.git wfstack: header implementation should be defined as static inline Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/static/wfstack.h b/urcu/static/wfstack.h index 454240f..79ed3f7 100644 --- a/urcu/static/wfstack.h +++ b/urcu/static/wfstack.h @@ -40,11 +40,13 @@ extern "C" { #define CDS_WFS_ADAPT_ATTEMPTS 10 /* Retry if being set */ #define CDS_WFS_WAIT 10 /* Wait 10 ms if being set */ +static inline void _cds_wfs_node_init(struct cds_wfs_node *node) { node->next = NULL; } +static inline void _cds_wfs_init(struct cds_wfs_stack *s) { int ret; @@ -54,6 +56,7 @@ void _cds_wfs_init(struct cds_wfs_stack *s) assert(!ret); } +static inline void _cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node) { struct cds_wfs_node *old_head; @@ -74,6 +77,7 @@ void _cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node) /* * Returns NULL if stack is empty. */ +static inline struct cds_wfs_node * ___cds_wfs_pop_blocking(struct cds_wfs_stack *s) { @@ -100,6 +104,7 @@ retry: goto retry; /* Concurrent modification. Retry. */ } +static inline struct cds_wfs_node * _cds_wfs_pop_blocking(struct cds_wfs_stack *s) {