Fix: lttng-ctl: assertion failure during unregistration of trigger
[lttng-tools.git] / include / lttng / trigger / trigger-internal.h
index 5bab4c7634c9a096a0819085cd49ccef063fdd8d..6fba6668491d71dd95f9f706a818e7e915c76d1e 100644 (file)
@@ -190,6 +190,12 @@ enum lttng_error_code lttng_trigger_generate_bytecode(
                struct lttng_trigger *trigger,
                const struct lttng_credentials *creds);
 
+/*
+ * Note that the trigger object is not locked by "copy" as it is const and
+ * used with a number of 'const' triggers. If the trigger could be shared at
+ * the moment of the copy, it is the caller's responsability to lock it for
+ * the duration of the copy.
+ */
 LTTNG_HIDDEN
 struct lttng_trigger *lttng_trigger_copy(const struct lttng_trigger *trigger);
 
This page took 0.023185 seconds and 4 git commands to generate.