X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Frculfstack.h;h=8cf7d13b35cc09ffc79f6646dd9c0d2c75b3e9b5;hb=3d02c34dba0edc4a3554a3862a2ae96d77b3b4e8;hp=48f6297eb5213dd82234b0a0e8bdd86d548d8a9c;hpb=2e6c64324e20fc31ccb6af3717e8d6b040869ed6;p=urcu.git diff --git a/urcu/rculfstack.h b/urcu/rculfstack.h index 48f6297..8cf7d13 100644 --- a/urcu/rculfstack.h +++ b/urcu/rculfstack.h @@ -1,3 +1,6 @@ +#ifndef _URCU_RCULFSTACK_H +#define _URCU_RCULFSTACK_H + /* * rculfstack.h * @@ -20,6 +23,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifdef __cplusplus +extern "C" { +#endif + #if (!defined(_GNU_SOURCE) && !defined(_LGPL_SOURCE)) #error "Dynamic loader LGPL wrappers not implemented yet" #endif @@ -66,7 +73,7 @@ void rcu_lfs_push(struct rcu_lfs_stack *s, struct rcu_lfs_node *node) /* * The caller must wait for a grace period to pass before freeing the returned - * node. + * node or modifying the rcu_lfs_node structure. * Returns NULL if stack is empty. */ struct rcu_lfs_node * @@ -95,3 +102,9 @@ rcu_lfs_pop(struct rcu_lfs_stack *s) } } } + +#ifdef __cplusplus +} +#endif + +#endif /* _URCU_RCULFSTACK_H */