Convert logging mutex functions to pybind11#735
Merged
Conversation
Contributor
Author
34 tasks
4fa053c to
4a901ce
Compare
hidmic
reviewed
Mar 24, 2021
| #include "logging.hpp" | ||
|
|
||
| extern "C" | ||
| { |
Contributor
There was a problem hiding this comment.
@sloretz meta: why the extern "C" block? AFAIK it only affects the function symbol, C and C++ are ABI compatible.
Contributor
There was a problem hiding this comment.
On a related note, we should probably ensure symbol locality (i.e. static, anonymous namespace).
Contributor
Author
There was a problem hiding this comment.
Oops, I mistakenly thought extern "C" changed the calling convention, but it does not. Removed extern C stuff and made appropriate functions static in 570b63d
Contributor
Author
hidmic
approved these changes
Mar 25, 2021
570b63d to
fbe3fda
Compare
Contributor
Author
Contributor
Author
hidmic
approved these changes
Mar 26, 2021
rclpy/src/rclpy/logging.cpp
Outdated
| try { | ||
| rclpy::LoggingGuard scoped_logging_guard; | ||
| rcl_logging_multiple_output_handler(location, severity, name, timestamp, format, args); | ||
| } catch (std::exception & ex) { |
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
b9d6b31 to
1f2ab6b
Compare
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Contributor
Author
hidmic
approved these changes
Mar 29, 2021
Contributor
Author
|
CMake warning is in cyclondedds, not this PR. Merging 🎉 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #665
Converts these functions to pybind11