projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add `urcu_posix_assert()` as `assert()` replacement
[urcu.git]
/
tests
/
benchmark
/
test_mutex.c
diff --git
a/tests/benchmark/test_mutex.c
b/tests/benchmark/test_mutex.c
index 6c4e8c773ed31a8e4f64da363ce0d4e4b204382e..55f7c38f21bf66f2d8ad7dbb91cb778256b6ccb4 100644
(file)
--- a/
tests/benchmark/test_mutex.c
+++ b/
tests/benchmark/test_mutex.c
@@
-28,10
+28,10
@@
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
-#include <assert.h>
#include <errno.h>
#include <urcu/arch.h>
#include <errno.h>
#include <urcu/arch.h>
+#include <urcu/assert.h>
#include <urcu/tls-compat.h>
#include "thread-id.h"
#include <urcu/tls-compat.h>
#include "thread-id.h"
@@
-156,7
+156,7
@@
void *thr_reader(void *data)
pthread_mutex_lock(&lock);
v = test_array.a;
pthread_mutex_lock(&lock);
v = test_array.a;
- assert(v == 8);
+
urcu_posix_
assert(v == 8);
if (caa_unlikely(rduration))
loop_sleep(rduration);
pthread_mutex_unlock(&lock);
if (caa_unlikely(rduration))
loop_sleep(rduration);
pthread_mutex_unlock(&lock);
This page took
0.02352 seconds
and
4
git commands to generate.