X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfstack.h;h=d7598541126ef476e26353f90a287ea438778dc5;hp=20ac26c3d2e8a13b8d64ae5e21a09459da9f53ca;hb=d9b52143813e104eeee1e3d90061042230b7b5bf;hpb=f7a3d9d917966b0acb45399a66d42dd7e7acb0ca diff --git a/urcu/rculfstack.h b/urcu/rculfstack.h index 20ac26c..d759854 100644 --- a/urcu/rculfstack.h +++ b/urcu/rculfstack.h @@ -51,6 +51,8 @@ extern void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s); extern void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node); /* + * Should be called under rcu read lock critical section. + * * The caller must wait for a grace period to pass before freeing the returned * node or modifying the cds_lfs_node_rcu structure. * Returns NULL if stack is empty.