CDS API: removal of rcu_read lock/unlock dep, removal of call_rcu argument from init
[urcu.git] / tests / test_urcu_lfs.c
index 71596fdb3071b77123eb64c4069401ae77a96b01..a7f9af3abd5086ee21e73aa0f3269530e612886a 100644 (file)
 #include <unistd.h>
 #include <stdio.h>
 #include <assert.h>
-#include <sys/syscall.h>
 #include <sched.h>
 #include <errno.h>
 
 #include <urcu/arch.h>
 
+#ifdef __linux__
+#include <syscall.h>
+#endif
+
 /* hardcoded number of CPUs */
 #define NR_CPUS 16384
 
@@ -62,7 +65,7 @@ static inline pid_t gettid(void)
 #define _LGPL_SOURCE
 #endif
 #include <urcu.h>
-#include <urcu/rculfstack.h>
+#include <urcu/cds.h>
 #include <urcu-defer.h>
 
 static volatile int test_go, test_stop;
@@ -226,9 +229,7 @@ void *thr_dequeuer(void *_count)
        for (;;) {
                struct cds_lfs_node_rcu *node;
 
-               rcu_read_lock();
                node = cds_lfs_pop_rcu(&s);
-               rcu_read_unlock();
                if (node) {
                        defer_rcu(free, node);
                        nr_successful_dequeues++;
This page took 0.031014 seconds and 4 git commands to generate.