Skip to content

Commit

Permalink
introduce RMW_EVENT_TYPE_MAX in rmw_event_type_t.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Oct 17, 2024
1 parent 9d2150f commit 3e9f274
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ class EventListenerInterface
virtual void update_inconsistent_topic(uint32_t total_count, uint32_t total_count_change) = 0;

protected:
eprosima::fastdds::dds::GuardCondition event_guard[RMW_EVENT_INVALID];
eprosima::fastdds::dds::GuardCondition event_guard[RMW_EVENT_TYPE_MAX];

rmw_event_callback_t on_new_event_cb_[RMW_EVENT_INVALID] = {nullptr};
rmw_event_callback_t on_new_event_cb_[RMW_EVENT_TYPE_MAX] = {nullptr};

const void * user_data_[RMW_EVENT_INVALID] = {nullptr};
const void * user_data_[RMW_EVENT_TYPE_MAX] = {nullptr};

std::mutex on_new_event_m_;

Expand Down

0 comments on commit 3e9f274

Please sign in to comment.