rcuja: fix randomness seed (per-thread), use u64 keyspace for random range
[userspace-rcu.git] / tests / test_urcu_ja.h
index 873b493bc0c0739347f05167b42104259a5a914a..1dab42910e06c345152e9d966913bec23b7c4d49 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.024341 seconds and 4 git commands to generate.