projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: HAVE_SCHED_SETAFFINITY is not defined
[urcu.git]
/
tests
/
benchmark
/
test_urcu_wfs.c
diff --git
a/tests/benchmark/test_urcu_wfs.c
b/tests/benchmark/test_urcu_wfs.c
index 544b074c5530f37df8d43ef935cc688a8e451e75..64731b3bb6d137dc3d6209a0675e5474fa71c410 100644
(file)
--- a/
tests/benchmark/test_urcu_wfs.c
+++ b/
tests/benchmark/test_urcu_wfs.c
@@
-93,7
+93,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 */
@@
-101,7
+101,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.043327 seconds
and
4
git commands to generate.