From 32c15e4e6fa2c368f4649d904c91e4293a1193e3 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 17 Jan 2010 13:25:06 -0500 Subject: [PATCH] Update comments Signed-off-by: Mathieu Desnoyers --- urcu-bp.c | 2 +- urcu-qsbr.c | 2 +- urcu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); /* -- 2.34.1