Add `urcu_posix_assert()` as `assert()` replacement
[urcu.git] / tests / benchmark / test_perthreadlock.c
index 76cdee9afa306fa06adfa26f32ce246789c54090..47a512cba06b12d8672247710db5feabdd2e3c45 100644 (file)
 #include <sys/wait.h>
 #include <unistd.h>
 #include <stdio.h>
-#include <assert.h>
 #include <errno.h>
 
 #include <urcu/arch.h>
+#include <urcu/assert.h>
 #include <urcu/tls-compat.h>
 #include "thread-id.h"
 
@@ -184,7 +184,7 @@ void *thr_reader(void *data)
 
                urcu_mutex_lock(&per_thread_lock[tidx].lock);
                v = test_array.a;
-               assert(v == 8);
+               urcu_posix_assert(v == 8);
                if (caa_unlikely(rduration))
                        loop_sleep(rduration);
                urcu_mutex_unlock(&per_thread_lock[tidx].lock);
This page took 0.024324 seconds and 4 git commands to generate.