X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfstack.h;h=8cf7d13b35cc09ffc79f6646dd9c0d2c75b3e9b5;hp=a9e624ce792ee2b59ecb648084df5cda73a60e46;hb=3d02c34dba0edc4a3554a3862a2ae96d77b3b4e8;hpb=c3f74cb2ea6f1e395b2d0352ee6c62367144688c diff --git a/urcu/rculfstack.h b/urcu/rculfstack.h index a9e624c..8cf7d13 100644 --- a/urcu/rculfstack.h +++ b/urcu/rculfstack.h @@ -23,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 @@ -69,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 * @@ -99,4 +103,8 @@ rcu_lfs_pop(struct rcu_lfs_stack *s) } } +#ifdef __cplusplus +} +#endif + #endif /* _URCU_RCULFSTACK_H */