Skip to content

Commit

Permalink
comm_navmsg_bus: Streamline an EventVar name
Browse files Browse the repository at this point in the history
  • Loading branch information
leamas committed Dec 29, 2024
1 parent dec9166 commit e9a6c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/include/model/comm_navmsg_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class NavMsgBus : public DriverListener {
const std::set<std::string>& GetActiveMessages() { return m_active_messages; }

/** Notified without data when new message type(s) are detected. */
EventVar NewMessageEvent;
EventVar new_msg_event;

private:
std::mutex m_mutex;
Expand Down
2 changes: 1 addition & 1 deletion model/src/comm_navmsg_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void NavMsgBus::Notify(std::shared_ptr<const NavMsg> msg) {
{
std::lock_guard lock(m_mutex);
if (m_active_messages.find(key) == m_active_messages.end())
NewMessageEvent.Notify();
new_msg_event.Notify();
m_active_messages.insert(key);
}
Observable(*msg).Notify(msg);
Expand Down

0 comments on commit e9a6c87

Please sign in to comment.