Use initial-exec TLS model
[lttng-ust.git] / liblttng-ust-libc-wrapper / lttng-ust-pthread.c
index 7836ffa02175d7599e4472403964b1b1069f4c33..6554a47afe7057f3b8c2c21147574c2f77d5ad09 100644 (file)
@@ -23,6 +23,7 @@
  * libc.
  */
 #include <lttng/ust-dlfcn.h>
+#include <urcu/tls-compat.h>
 #include <helper.h>
 #include <pthread.h>
 
@@ -31,7 +32,7 @@
 #define TP_IP_PARAM ip
 #include "ust_pthread.h"
 
-static __thread int thread_in_trace;
+static DEFINE_URCU_TLS_IE(int, thread_in_trace);
 
 int pthread_mutex_lock(pthread_mutex_t *mutex)
 {
This page took 0.022673 seconds and 4 git commands to generate.