projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename `urcu_assert()` to `urcu_assert_debug()`
[userspace-rcu.git]
/
tests
/
benchmark
/
test_mutex.c
diff --git
a/tests/benchmark/test_mutex.c
b/tests/benchmark/test_mutex.c
index e06b902c1c54b2e871e2f4fa0ecfb42846e94e8e..6c4e8c773ed31a8e4f64da363ce0d4e4b204382e 100644
(file)
--- a/
tests/benchmark/test_mutex.c
+++ b/
tests/benchmark/test_mutex.c
@@
-85,7
+85,7
@@
pthread_mutex_t affinity_mutex = PTHREAD_MUTEX_INITIALIZER;
static void set_affinity(void)
{
static void set_affinity(void)
{
-#if HAVE_SCHED_SETAFFINITY
+#if
def
HAVE_SCHED_SETAFFINITY
cpu_set_t mask;
int cpu, ret;
#endif /* HAVE_SCHED_SETAFFINITY */
cpu_set_t mask;
int cpu, ret;
#endif /* HAVE_SCHED_SETAFFINITY */
@@
-93,7
+93,7
@@
static void set_affinity(void)
if (!use_affinity)
return;
if (!use_affinity)
return;
-#if HAVE_SCHED_SETAFFINITY
+#if
def
HAVE_SCHED_SETAFFINITY
ret = pthread_mutex_lock(&affinity_mutex);
if (ret) {
perror("Error in pthread mutex lock");
ret = pthread_mutex_lock(&affinity_mutex);
if (ret) {
perror("Error in pthread mutex lock");
This page took
0.041157 seconds
and
4
git commands to generate.