Simplify qsbr online condition
[urcu.git] / urcu-qsbr-static.h
index 8822e050bac8aaa00a8c210dfb122193f2e90280..125301f9b7749c4a93784068eb3f6e320aa156d9 100644 (file)
@@ -169,7 +169,7 @@ static inline int rcu_gp_ongoing(unsigned long *ctr)
        unsigned long v;
 
        v = LOAD_SHARED(*ctr);
-       return v && (v - rcu_gp_ctr > ULONG_MAX / 2);
+       return v && (v != rcu_gp_ctr);
 }
 #endif  /* !(BITS_PER_LONG < 64) */
 
This page took 0.022549 seconds and 4 git commands to generate.