Fix: tls-compat with hidden ring buffer context
[lttng-ust.git] / liblttng-ust / lttng-ring-buffer-client.h
index 01ad89daeaa8fca52ea0093a331c9c7c11eaa5af..fb7ba25521fce4eddb5519629218b738b651fd3a 100644 (file)
@@ -732,7 +732,7 @@ int lttng_event_reserve(struct lttng_ust_lib_ring_buffer_ctx *ctx)
        if (nesting < 0)
                return -EPERM;
 
-       private_ctx = &private_ctx_stack[nesting];
+       private_ctx = &URCU_TLS(private_ctx_stack[nesting]);
        memset(private_ctx, 0, sizeof(*private_ctx));
        private_ctx->pub = ctx;
        private_ctx->chan = lttng_chan->priv->rb_chan;
This page took 0.022559 seconds and 4 git commands to generate.