From: Jérémie Galarneau Date: Thu, 11 Feb 2021 16:37:33 +0000 (-0500) Subject: sessiond: docs: document action_executor_enqueue() parameter ownership X-Git-Tag: v2.13.0-rc1~332 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f3509d2a0f1bbe1521316554aab6fec6cb48d84e;p=lttng-tools.git sessiond: docs: document action_executor_enqueue() parameter ownership Signed-off-by: Jérémie Galarneau Change-Id: Iab668825a7b529e4212aa39080e152628c07a363 --- diff --git a/src/bin/lttng-sessiond/action-executor.h b/src/bin/lttng-sessiond/action-executor.h index e01a37773..945b9b325 100644 --- a/src/bin/lttng-sessiond/action-executor.h +++ b/src/bin/lttng-sessiond/action-executor.h @@ -27,6 +27,16 @@ struct action_executor *action_executor_create( void action_executor_destroy(struct action_executor *executor); +/* + * Enqueue a job on an action executor's work queue to perform the actions + * associated with a trigger. + * + * A reference to `trigger` is acquired. + * A reference to `list` is acquired. + * + * This function assumes the ownership of the `evaluation` both on success and + * failure: the caller should no longer access it once the function returns. + */ enum action_executor_status action_executor_enqueue( struct action_executor *executor, struct lttng_trigger *trigger,