lttng_ust_init_thread: initialise cached context values
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-provider.c
index 4e7e429fcc6ee662c744cd94a818eca68d01eb5f..5000657de636e79b20e84bb8526843616250e8bc 100644 (file)
@@ -67,7 +67,7 @@ struct lttng_ust_registered_context_provider *lttng_ust_context_provider_registe
        size_t name_len = strlen(provider->name);
        uint32_t hash;
 
-       lttng_ust_alloc_tls();
+       lttng_ust_common_init_thread(0);
 
        /* Provider name starts with "$app.". */
        if (strncmp("$app.", provider->name, strlen("$app.")) != 0)
@@ -101,7 +101,7 @@ end:
 
 void lttng_ust_context_provider_unregister(struct lttng_ust_registered_context_provider *reg_provider)
 {
-       lttng_ust_alloc_tls();
+       lttng_ust_common_init_thread(0);
 
        if (ust_lock())
                goto end;
This page took 0.024055 seconds and 4 git commands to generate.