X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-qsbr.h;h=59621807abf470012bc94ee48cc7e6ee786d2b65;hp=101b94d49d83c71230bf208bf5cd9771656bab5b;hb=656c6da75f7ee119bfc49e026f52d695d0d1aea2;hpb=c297c21c6eadc359a358d33e65f9f5419b55b586 diff --git a/urcu-qsbr.h b/urcu-qsbr.h index 101b94d..5962180 100644 --- a/urcu-qsbr.h +++ b/urcu-qsbr.h @@ -117,13 +117,8 @@ #define YIELD_READ (1 << 0) #define YIELD_WRITE (1 << 1) -/* Updates without DEBUG_FULL_MB are much slower. Account this in the delay */ -#ifdef DEBUG_FULL_MB /* maximum sleep delay, in us */ #define MAX_SLEEP 50 -#else -#define MAX_SLEEP 30000 -#endif extern unsigned int yield_active; extern unsigned int __thread rand_yield; @@ -161,17 +156,10 @@ static inline void debug_yield_init(void) } #endif -#ifdef DEBUG_FULL_MB static inline void reader_barrier() { smp_mb(); } -#else -static inline void reader_barrier() -{ - barrier(); -} -#endif /* * The trick here is that RCU_GP_CTR_BIT must be a multiple of 8 so we can use a