"make check" runs the test suite
[urcu.git] / urcu-qsbr-static.h
index 9f3a9b99f3c36ded7961cdeb3eadc102bba0f51d..125301f9b7749c4a93784068eb3f6e320aa156d9 100644 (file)
@@ -135,7 +135,7 @@ struct rcu_reader {
        /* Data used by both reader and synchronize_rcu() */
        unsigned long ctr;
        /* Data used for registry */
-       struct list_head head __attribute__((aligned(CACHE_LINE_SIZE)));
+       struct list_head node __attribute__((aligned(CACHE_LINE_SIZE)));
        pthread_t tid;
 };
 
@@ -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.0224 seconds and 4 git commands to generate.