Fix: c99: use __asm__ __volatile__
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-vtid.c
index 97a023d200af68f07abb43b4506170a031ab068b..a9ba305454222e15ff6655f6fd9097ba04bfc1b8 100644 (file)
@@ -110,9 +110,11 @@ error_find_context:
 }
 
 /*
- * Force a read (imply TLS fixup for dlopen) of TLS variables.
+ * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_fixup_vtid_tls(void)
+void lttng_ust_vtid_init_thread(int flags)
 {
-       asm volatile ("" : : "m" (URCU_TLS(cached_vtid)));
+       __asm__ __volatile__ ("" : : "m" (URCU_TLS(cached_vtid)));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)wrapper_getvtid();
 }
This page took 0.023447 seconds and 4 git commands to generate.