Fix static linking: fix symbol name namespaces
[urcu.git] / tests / test_urcu_qsbr_gc.c
index aa0e2a74aeabdd54bb3c30e3ec276d3b9120f46d..11668ee017e97f325ea9a9243e02d90aefbe24c7 100644 (file)
@@ -117,9 +117,10 @@ typedef unsigned long cpu_set_t;
 
 static void set_affinity(void)
 {
+#if HAVE_SCHED_SETAFFINITY
        cpu_set_t mask;
-       int cpu;
-       int ret;
+       int cpu, ret;
+#endif /* HAVE_SCHED_SETAFFINITY */
 
        if (!use_affinity)
                return;
@@ -212,7 +213,7 @@ void *thr_reader(void *_count)
        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))
@@ -360,10 +361,10 @@ int main(int argc, char **argv)
                switch (argv[i][1]) {
 #ifdef DEBUG_YIELD
                case 'r':
-                       yield_active |= YIELD_READ;
+                       rcu_yield_active |= RCU_YIELD_READ;
                        break;
                case 'w':
-                       yield_active |= YIELD_WRITE;
+                       rcu_yield_active |= RCU_YIELD_WRITE;
                        break;
 #endif
                case 'a':
This page took 0.023591 seconds and 4 git commands to generate.