X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Furcu%2Fstatic%2Furcu-signal.h;h=c7577d3b82149921eda468e6799223847f1cd692;hb=3c3f9aff1e6980292d31a7819d7ba998e8d0b754;hp=4de6da00c7112c7d5e1b542497ab436d673f9048;hpb=f99c6e92aaa1582e6cd19d93d44d91d968f39aa7;p=urcu.git diff --git a/include/urcu/static/urcu-signal.h b/include/urcu/static/urcu-signal.h index 4de6da0..c7577d3 100644 --- a/include/urcu/static/urcu-signal.h +++ b/include/urcu/static/urcu-signal.h @@ -34,6 +34,7 @@ #include #include +#include #include #include #include @@ -42,7 +43,6 @@ #include #include #include -#include #include #include @@ -92,10 +92,10 @@ static inline void _urcu_signal_read_lock(void) { unsigned long tmp; - urcu_assert(URCU_TLS(urcu_signal_reader).registered); + urcu_assert_debug(URCU_TLS(urcu_signal_reader).registered); cmm_barrier(); tmp = URCU_TLS(urcu_signal_reader).ctr; - urcu_assert((tmp & URCU_GP_CTR_NEST_MASK) != URCU_GP_CTR_NEST_MASK); + urcu_assert_debug((tmp & URCU_GP_CTR_NEST_MASK) != URCU_GP_CTR_NEST_MASK); _urcu_signal_read_lock_update(tmp); } @@ -127,9 +127,9 @@ static inline void _urcu_signal_read_unlock(void) { unsigned long tmp; - urcu_assert(URCU_TLS(urcu_signal_reader).registered); + urcu_assert_debug(URCU_TLS(urcu_signal_reader).registered); tmp = URCU_TLS(urcu_signal_reader).ctr; - urcu_assert(tmp & URCU_GP_CTR_NEST_MASK); + urcu_assert_debug(tmp & URCU_GP_CTR_NEST_MASK); _urcu_signal_read_unlock_update_and_wakeup(tmp); cmm_barrier(); /* Ensure the compiler does not reorder us with mutex */ }