X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu-qsbr-static.h;h=887dc3d64e949ab843a248846e4286b4fbdbf7bb;hb=ac258107eb2e669d6f8210c86164f1b2a028f5fc;hp=3d2ec8f3af5b046c9ca66c3b24e4e77aa762d358;hpb=f0f7dbdd9ba9bff3860d8aea63a3e01b158351de;p=userspace-rcu.git diff --git a/urcu-qsbr-static.h b/urcu-qsbr-static.h index 3d2ec8f..887dc3d 100644 --- a/urcu-qsbr-static.h +++ b/urcu-qsbr-static.h @@ -161,6 +161,9 @@ static inline void reader_barrier() smp_mb(); } +#define RCU_GP_ONLINE (1UL << 0) +#define RCU_GP_COUNT (1UL << 1) + /* * Global quiescent period counter with low-order bits unused. * Using a int rather than a char to eliminate false register dependencies @@ -182,7 +185,7 @@ static inline int rcu_gp_ongoing(unsigned long *value) static inline void _rcu_read_lock(void) { - rcu_assert(rcu_reader_qs_gp & 1); + rcu_assert(rcu_reader_qs_gp); } static inline void _rcu_read_unlock(void)