Use initial-exec TLS model
[lttng-ust.git] / tests / test-app-ctx / hello.c
index 197df21e1ada8bbc1d9e1cdadfc992ae522abd0c..f2859a7a13612318650abc313cafddd7c3b25e06 100644 (file)
@@ -26,6 +26,7 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <string.h>
+#include <urcu/tls-compat.h>
 /*
  * Work-around inet.h missing struct mmsghdr forward declaration, with
  * triggers a warning when system files warnings are enabled.
@@ -43,7 +44,7 @@ struct mmsghdr;
 #include <lttng/ringbuffer-config.h>
 #include <lttng/ust-context-provider.h>
 
-static __thread unsigned int test_count;
+static DEFINE_URCU_TLS_IE(unsigned int, test_count);
 
 void test_inc_count(void)
 {
This page took 0.022828 seconds and 4 git commands to generate.