From: Mathieu Desnoyers Date: Sun, 17 Jan 2010 18:25:06 +0000 (-0500) Subject: Update comments X-Git-Tag: v0.4.0~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=32c15e4e6fa2c368f4649d904c91e4293a1193e3;p=userspace-rcu.git Update comments Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-bp.c b/urcu-bp.c index fc6eedf..1b0bd69 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -122,7 +122,7 @@ void update_counter_and_wait(void) int wait_loops = 0; struct rcu_reader *index, *tmp; - /* Switch parity: 1 -> 0, 0 -> 1 */ + /* Switch parity: 0 -> 1, 1 -> 0 */ STORE_SHARED(rcu_gp_ctr, rcu_gp_ctr ^ RCU_GP_CTR_PHASE); /* diff --git a/urcu-qsbr.c b/urcu-qsbr.c index 155505a..84789f2 100644 --- a/urcu-qsbr.c +++ b/urcu-qsbr.c @@ -113,7 +113,7 @@ static void update_counter_and_wait(void) struct rcu_reader *index, *tmp; #if (BITS_PER_LONG < 64) - /* Switch parity: 1 -> 0, 0 -> 1 */ + /* Switch parity: 0 -> 1, 1 -> 0 */ STORE_SHARED(rcu_gp_ctr, rcu_gp_ctr ^ RCU_GP_CTR); #else /* !(BITS_PER_LONG < 64) */ /* Increment current G.P. */ diff --git a/urcu.c b/urcu.c index e93170d..ffdab3c 100644 --- a/urcu.c +++ b/urcu.c @@ -205,7 +205,7 @@ void update_counter_and_wait(void) int wait_loops = 0; struct rcu_reader *index, *tmp; - /* Switch parity: 1 -> 0, 0 -> 1 */ + /* Switch parity: 0 -> 1, 1 -> 0 */ STORE_SHARED(rcu_gp_ctr, rcu_gp_ctr ^ RCU_GP_CTR_PHASE); /*