Class EventsManager

Class Documentation

class EventsManager

A class to manage QoS related events.

Public Functions

void event_set_callback(rmw_zenoh_event_type_t event_id, rmw_event_callback_t callback, const void *user_data)

Set the callback to be triggered when the relevant event is triggered.

Parameters:
  • event_id – the id of the event

  • callback – the callback to trigger for this event.

  • user_data – the data to be passed to the callback.

rmw_zenoh_event_status_t take_event_status(rmw_zenoh_event_type_t event_id)

Get the status for an event.

Parameters:

event_id – the id for the event whose status should be retrieved.

void update_event_status(rmw_zenoh_event_type_t event_id, int32_t current_count_change)

Update the status for an event.

Parameters:
  • event_id – the id for the event whose status should be changed.

  • current_count_change – the change in the current count.

bool queue_has_data_and_attach_condition_if_not(rmw_zenoh_event_type_t event_id, rmw_wait_set_data_t *wait_set_data)

Attach the condition variable provided by rmw_wait.

Parameters:

condition_variable – to attach.

bool detach_condition_and_event_queue_is_empty(rmw_zenoh_event_type_t event_id)

Detach the condition variable provided by rmw_wait.