* at this point so that conditions that are already TRUE result
* in a notification being sent out.
*
- * The client_list's trigger is used without locking the list itself.
- * This is correct since the list doesn't own the trigger and the
- * object is immutable.
+ * Note the iteration on all triggers which share an identical
+ * `condition` than the one to which the client is registering. This is
+ * done to ensure that the client receives a distinct notification for
+ * all triggers that have a `notify` action that have this condition.
*/
pthread_mutex_lock(&client_list->lock);
cds_list_for_each_entry(trigger_ht_element,
pthread_mutex_t lock;
struct urcu_ref ref;
struct lttng_condition *condition;
+ /* List of triggers that have an identical condition than `condition`. */
struct cds_list_head triggers_list;
struct cds_list_head clients_list;
/* Weak reference to container. */