From 9606ca85cc200f7c8c023f512aab41af18f7a267 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 29 May 2011 23:16:51 -0400 Subject: [PATCH] Add _STORE_SHARED to set_parent Signed-off-by: Mathieu Desnoyers --- urcu-rbtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1