From: Mathieu Desnoyers Date: Mon, 9 Feb 2009 19:05:19 +0000 (-0500) Subject: Add comment in rcu_add_lock X-Git-Tag: v0.1~299 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=3a9e6e9df706b8d39af94d2f027210e2e7d4106e Add comment in rcu_add_lock Comment optimization to make it clear to the reader. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu.h b/urcu.h index 9e9fea2..277b7d2 100644 --- a/urcu.h +++ b/urcu.h @@ -199,6 +199,7 @@ static inline void rcu_read_lock(void) debug_yield_read(); tmp = urcu_active_readers; debug_yield_read(); + /* urcu_gp_ctr = RCU_GP_COUNT | (~RCU_GP_CTR_BIT or RCU_GP_CTR_BIT) */ if (likely(!(tmp & RCU_GP_CTR_NEST_MASK))) urcu_active_readers = urcu_gp_ctr; else