Fix: c99: use __asm__ __volatile__
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-vtid.c
index 880e34b90a1dae8aa9b95eec305ceaa08d0b5176..a9ba305454222e15ff6655f6fd9097ba04bfc1b8 100644 (file)
@@ -112,7 +112,9 @@ error_find_context:
 /*
  * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_vtid_alloc_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.023083 seconds and 4 git commands to generate.