lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-vtid.c
index 880e34b90a1dae8aa9b95eec305ceaa08d0b5176..e9bbbf85bd8eb1c3d98612aa63018d9c7214c369 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)));
+       if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+               (void)wrapper_getvtid();
 }
This page took 0.022845 seconds and 4 git commands to generate.