From: Mathieu Desnoyers Date: Mon, 30 May 2011 03:16:51 +0000 (-0400) Subject: Add _STORE_SHARED to set_parent X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9606ca85cc200f7c8c023f512aab41af18f7a267;p=urcu.git Add _STORE_SHARED to set_parent Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-rbtree.c b/urcu-rbtree.c index 454591a..f4fc698 100644 --- a/urcu-rbtree.c +++ b/urcu-rbtree.c @@ -88,7 +88,7 @@ void set_parent(struct rcu_rbtree_node *node, struct rcu_rbtree_node *parent, unsigned int pos) { - node->parent = ((unsigned long) parent) | pos; + _CMM_STORE_SHARED(node->parent, ((unsigned long) parent) | pos); } static