tests: use thread-id.h wrapper
[urcu.git] / tests / test_looplen.c
index e1bd2ea25a037238cba132ba61d2879b1fd36f24..16674e76ac442343b77ea27d1994a5920cd6c9e7 100644 (file)
 
 #include <urcu/arch.h>
 
-#ifdef __linux__
-#include <syscall.h>
-#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.022246 seconds and 4 git commands to generate.