-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the event_map out of the header file. (#226)
The main reason for this is that putting it in the header file means that it is duplicated into every compilation unit that includes it. This is slow, and in theory can cause issues if a pointer to the map is passed between compilation units. Instead, hide the map inside of the events.cpp file, and add a free function that converts between an RMW event type and a Zenoh event type. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
bc761dd
commit 5715f13
Showing
4 changed files
with
81 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters