X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fref.h;fp=include%2Furcu%2Fref.h;h=e7ab5310aa5d4a2a4deff4f988cdc4bf5063d56c;hp=e546da567120e086e5773950ac135d510900b4fc;hb=014775106c60f02818ca755b331f887030bd440f;hpb=2a27e9319bacc9bc98f38afb7e4f050601ab979b diff --git a/include/urcu/ref.h b/include/urcu/ref.h index e546da5..e7ab531 100644 --- a/include/urcu/ref.h +++ b/include/urcu/ref.h @@ -14,10 +14,10 @@ * published by the Free Software Foundation. */ -#include #include #include #include +#include #include struct urcu_ref { @@ -63,7 +63,7 @@ static inline void urcu_ref_put(struct urcu_ref *ref, void (*release)(struct urcu_ref *)) { long res = uatomic_sub_return(&ref->refcount, 1); - assert (res >= 0); + urcu_posix_assert(res >= 0); if (res == 0) release(ref); }