forked from eProsima/Micro-XRCE-DDS-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug-level asserts for poor time or configuration to prevent blo…
…cking in uxr_create_session * Added asserts that protect against time going backwards or staying static * Added information to header on a call being blocking and for how long * Increased const-correctecness of time handling * Add assert for handling narrowing conversion of time * Add CMake protection for incorrectly configuring options that can block for unreasonable amount of time * CMake should theoretically remove the asserts in release mode, so there should be no overhead * Reference: https://stackoverflow.com/questions/34302265/does-cmake-build-type-release-imply-dndebug * Closes eProsima#350 Signed-off-by: Ryan Friedman <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
4 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