projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Fix: cross-build: configure.ac should use --target, not --host"
[userspace-rcu.git]
/
tests
/
test_urcu_assign.c
diff --git
a/tests/test_urcu_assign.c
b/tests/test_urcu_assign.c
index 9d46caf4e1b26e042e58970d3a9a9b02a4ad85d4..9e10225ad204d02efc3c39a7e7e35c91e95339e3 100644
(file)
--- a/
tests/test_urcu_assign.c
+++ b/
tests/test_urcu_assign.c
@@
-62,7
+62,7
@@
static inline pid_t gettid(void)
#ifndef DYNAMIC_LINK_TEST
#define _LGPL_SOURCE
#else
#ifndef DYNAMIC_LINK_TEST
#define _LGPL_SOURCE
#else
-#define debug_yield_read()
+#define
rcu_
debug_yield_read()
#endif
#include <urcu.h>
#endif
#include <urcu.h>
@@
-112,9
+112,10
@@
typedef unsigned long cpu_set_t;
static void set_affinity(void)
{
static void set_affinity(void)
{
+#if HAVE_SCHED_SETAFFINITY
cpu_set_t mask;
cpu_set_t mask;
- int cpu;
- int ret;
+ int cpu
, ret
;
+#endif /* HAVE_SCHED_SETAFFINITY */
if (!use_affinity)
return;
if (!use_affinity)
return;
@@
-237,7
+238,7
@@
void *thr_reader(void *_count)
for (;;) {
rcu_read_lock();
local_ptr = rcu_dereference(test_rcu_pointer);
for (;;) {
rcu_read_lock();
local_ptr = rcu_dereference(test_rcu_pointer);
- debug_yield_read();
+
rcu_
debug_yield_read();
if (local_ptr)
assert(local_ptr->a == 8);
if (caa_unlikely(rduration))
if (local_ptr)
assert(local_ptr->a == 8);
if (caa_unlikely(rduration))
@@
-350,10
+351,10
@@
int main(int argc, char **argv)
switch (argv[i][1]) {
#ifdef DEBUG_YIELD
case 'r':
switch (argv[i][1]) {
#ifdef DEBUG_YIELD
case 'r':
-
yield_active |=
YIELD_READ;
+
rcu_yield_active |= RCU_
YIELD_READ;
break;
case 'w':
break;
case 'w':
-
yield_active |=
YIELD_WRITE;
+
rcu_yield_active |= RCU_
YIELD_WRITE;
break;
#endif
case 'a':
break;
#endif
case 'a':
This page took
0.026267 seconds
and
4
git commands to generate.