rcuja: fix randomness seed (per-thread), use u64 keyspace for random range
[userspace-rcu.git] / tests / test_urcu_ja_range.h
index e9bbdbc3ed7eb8f57e30c26b8789ba609a6bfdd9..1f8c2a2f046d48a5aea3ece45cec14412e53f2f0 100644 (file)
 #include <signal.h>
 
 #include <urcu/tls-compat.h>
-
-#ifdef __linux__
-#include <syscall.h>
-#endif
+#include "thread-id.h"
 
 #define DEFAULT_RAND_POOL      1000000
 
 #define poison_free(ptr)       free(ptr)
 #endif
 
-
-
-#if defined(_syscall0)
-_syscall0(pid_t, gettid)
-#elif defined(__NR_gettid)
-static inline pid_t gettid(void)
-{
-       return syscall(__NR_gettid);
-}
-#else
-#warning "use pid as tid"
-static inline pid_t gettid(void)
-{
-       return getpid();
-}
-#endif
-
 #ifndef DYNAMIC_LINK_TEST
 #define _LGPL_SOURCE
 #else
This page took 0.023076 seconds and 4 git commands to generate.