X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.h;h=c2793b76aab06d5ceb43692fe90ca65989e9de7d;hb=61ba6b6dc790245afa7fbec89a9811f6c7603b00;hp=2aa76e71ca422bfd007dfcaec4786ebb1d7db549;hpb=814b4934e2604a419bcb8eec57c0450dbb47e2c3;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread.h b/src/bin/lttng-sessiond/notification-thread.h index 2aa76e71c..c2793b76a 100644 --- a/src/bin/lttng-sessiond/notification-thread.h +++ b/src/bin/lttng-sessiond/notification-thread.h @@ -89,7 +89,7 @@ struct notification_thread_handle { * holds the ownership of the struct channel_info. * * - triggers_ht: - * associated a condition to a struct lttng_trigger_ht_element. + * associates a condition to a struct lttng_trigger_ht_element. * The hash table holds the ownership of the * lttng_trigger_ht_elements along with the triggers themselves. * @@ -127,6 +127,8 @@ struct notification_thread_handle { * notification_trigger_clients_ht, * - add trigger to channel_triggers_ht (if applicable), * - add trigger to triggers_ht + * - evaluate the trigger's condition right away to react if that condition + * is true from the beginning. * * 4) Unregistration of a trigger * - if the trigger's action is of type "notify", @@ -153,6 +155,8 @@ struct notification_thread_handle { * - Add the condition to the client's list of subscribed conditions, * - Look-up notification_trigger_clients_ht and add the client to * list of clients. + * - Evaluate the condition for the client that subscribed if the trigger + * was already registered. * * 9) Unsubscription of a client to a condition's notifications * - Remove the condition from the client's list of subscribed conditions,