* - Synchronous: commands emitted by the client to which a reply is expected
* (e.g. subscribing/unsubscribing to conditions),
* - Asynchronous: notifications which are sent by the lttng_endpoint to the
- * client as one of the subscribed condition has occured.
+ * client as one of the subscribed condition has occurred.
*
* The nature of this hybrid communication mode means that asynchronous messages
* (e.g. notifications) may be interleaved between synchronous messages (e.g. a
int handle_notification_thread_trigger_unregister_all(
struct notification_thread_state *state)
{
- bool error_occured = false;
+ bool error_occurred = false;
struct cds_lfht_iter iter;
struct lttng_trigger_ht_element *trigger_ht_element;
int ret = handle_notification_thread_command_unregister_trigger(
state, trigger_ht_element->trigger, NULL);
if (ret) {
- error_occured = true;
+ error_occurred = true;
}
}
- return error_occured ? -1 : 0;
+ return error_occurred ? -1 : 0;
}
static
ret = handle_notification_thread_channel_sample(
state, fd, domain);
if (ret) {
- ERR("[notification-thread] Consumer sample handling error occured");
+ ERR("[notification-thread] Consumer sample handling error occurred");
ret = -1;
goto end;
}