Cleanup headers
[urcu.git] / tests / test_urcu_defer.c
index 233b38498ced552ed04ba753af5974892d89ec2f..1c6f742b13aa841b47f203c39fa633ecf3f6db61 100644 (file)
@@ -33,7 +33,7 @@
 #include <sys/syscall.h>
 #include <sched.h>
 
-#include "../arch.h"
+#include <urcu/arch.h>
 
 /* Make this big enough to include the POWER5+ L3 cacheline size of 256B */
 #define CACHE_LINE_SIZE 4096
@@ -61,8 +61,8 @@ static inline pid_t gettid(void)
 #else
 #define debug_yield_read()
 #endif
-#include "../urcu.h"
-#include "../urcu-defer.h"
+#include <urcu.h>
+#include <urcu-defer.h>
 
 struct test_array {
        int a;
@@ -239,15 +239,13 @@ void *thr_writer(void *data)
                new->a = 8;
                old = rcu_xchg_pointer(&test_rcu_pointer, new);
                call_rcu(free, old);
-#if 0
                call_rcu(test_cb1, old);
                call_rcu(test_cb1, (void *)-2L);
                call_rcu(test_cb1, (void *)-2L);
                call_rcu(test_cb1, old);
                call_rcu(test_cb2, (void *)-2L);
-#endif //0
                call_rcu(test_cb2, (void *)-4L);
-               //call_rcu(test_cb2, (void *)-2L);
+               call_rcu(test_cb2, (void *)-2L);
                nr_writes++;
                if (unlikely(!test_duration_write()))
                        break;
This page took 0.02332 seconds and 4 git commands to generate.