Update comments
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 17 Jan 2010 18:25:06 +0000 (13:25 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 17 Jan 2010 18:25:06 +0000 (13:25 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-bp.c
urcu-qsbr.c
urcu.c

index fc6eedf56a545dde91e1fa8b96456af5bc593158..1b0bd6950da04533c35bf00a5c131ac4da3e470b 100644 (file)
--- 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);
 
        /*
index 155505abc7843385fafef29de57509ceb096519c..84789f2ebfdd4fa89def6fb56274595739a51d02 100644 (file)
@@ -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 e93170d749b4c939884840767febcc3e3d820997..ffdab3c2fc1eacbad2c4e73f5e89e83261fdb8d5 100644 (file)
--- 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);
 
        /*
This page took 0.026776 seconds and 4 git commands to generate.