Docs: A stream has no ownership of its trace
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jul 2015 18:38:08 +0000 (14:38 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jul 2015 18:38:08 +0000 (14:38 -0400)
Add a comment to explain why the trace's refcount is not incremented
when setting a stream's trace.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/stream.c

index e89b1fcf6b62f669b6c67d3b953369f13b9441df..047fc2925e19e3e79af185389f9b9fa22833125a 100644 (file)
@@ -270,6 +270,7 @@ struct bt_ctf_stream *bt_ctf_stream_create(
                goto end;
        }
 
+       /* A stream has no ownership of its trace (weak ptr) */
        stream->trace = trace;
        bt_ctf_ref_init(&stream->ref_count);
        stream->packet_context = bt_ctf_field_create(
This page took 0.025511 seconds and 4 git commands to generate.