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_perthreadlock_timing.c
diff --git
a/tests/benchmark/test_perthreadlock_timing.c
b/tests/benchmark/test_perthreadlock_timing.c
index 712eca1b2806e920832c016c93d550147ac98e9d..34aae5fdba7918c1623b963deb5367ca195e571b 100644
(file)
--- a/
tests/benchmark/test_perthreadlock_timing.c
+++ b/
tests/benchmark/test_perthreadlock_timing.c
@@
-28,11
+28,11
@@
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
-#include <assert.h>
#include <pthread.h>
#include <errno.h>
#include <urcu/arch.h>
#include <pthread.h>
#include <errno.h>
#include <urcu/arch.h>
+#include <urcu/assert.h>
#include "thread-id.h"
#include "thread-id.h"
@@
-87,7
+87,7
@@
void *thr_reader(void *arg)
perror("Error in pthread mutex lock");
exit(-1);
}
perror("Error in pthread mutex lock");
exit(-1);
}
- assert(test_array.a == 8);
+
urcu_posix_
assert(test_array.a == 8);
ret = pthread_mutex_unlock(&per_thread_lock[tidx].lock);
if (ret) {
perror("Error in pthread mutex unlock");
ret = pthread_mutex_unlock(&per_thread_lock[tidx].lock);
if (ret) {
perror("Error in pthread mutex unlock");
This page took
0.022747 seconds
and
4
git commands to generate.