X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=src%2Fcompat_arch.c;fp=src%2Fcompat_arch.c;h=e1651d3db9a2110ae18702c85dc4b7f1cb574838;hp=73f7d2d2f441e2e1fe4ef8771c807f2ebd0b7606;hb=014775106c60f02818ca755b331f887030bd440f;hpb=2a27e9319bacc9bc98f38afb7e4f050601ab979b diff --git a/src/compat_arch.c b/src/compat_arch.c index 73f7d2d..e1651d3 100644 --- a/src/compat_arch.c +++ b/src/compat_arch.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include /* @@ -95,11 +95,11 @@ static void mutex_lock_signal_save(pthread_mutex_t *mutex, sigset_t *oldmask) /* Disable signals */ ret = sigfillset(&newmask); - assert(!ret); + urcu_posix_assert(!ret); ret = pthread_sigmask(SIG_BLOCK, &newmask, oldmask); - assert(!ret); + urcu_posix_assert(!ret); ret = pthread_mutex_lock(&__urcu_x86_compat_mutex); - assert(!ret); + urcu_posix_assert(!ret); } static void mutex_lock_signal_restore(pthread_mutex_t *mutex, sigset_t *oldmask) @@ -107,9 +107,9 @@ static void mutex_lock_signal_restore(pthread_mutex_t *mutex, sigset_t *oldmask) int ret; ret = pthread_mutex_unlock(&__urcu_x86_compat_mutex); - assert(!ret); + urcu_posix_assert(!ret); ret = pthread_sigmask(SIG_SETMASK, oldmask, NULL); - assert(!ret); + urcu_posix_assert(!ret); } unsigned long _compat_uatomic_set(void *addr, unsigned long _new, int len)