-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use std::shared_ptr
for gz::transport::NodeShared
#484
Use std::shared_ptr
for gz::transport::NodeShared
#484
Commits on Mar 15, 2024
-
Fix test failures when run under
colcon test
Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3bb6be3 - Browse repository at this point
Copy the full SHA 3bb6be3View commit details -
Use a
std::shared_ptr
forNodeShared
Currently, `NodeShared` is never destroyed once it's created. This makes it hard for writing tests that do not interfere with each other. This patch uses a reference counted smart pointer (`std::shared_ptr`) to keep track of `NodeShared` instances, so that it gets properly destroyed when when all `Node` instances, which themselves contain `NodeShared` instances are destroyed. Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d836cd - Browse repository at this point
Copy the full SHA 4d836cdView commit details
Commits on Mar 16, 2024
-
Keep signature of
Node::Shared
to maintain ABI stability`Node::Shared` is a private function but it's used in `details/Node.hh` in templates which means there could be calls to `Node::Shared` embedded in other libraries. Since we're mainly tracking the number of `Node` instances, and since `Node::Shared` is private, it's okay to use raw pointers internal use. Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5bcb60f - Browse repository at this point
Copy the full SHA 5bcb60fView commit details
Commits on Mar 20, 2024
-
Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b36e874 - Browse repository at this point
Copy the full SHA b36e874View commit details -
Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 60cdec5 - Browse repository at this point
Copy the full SHA 60cdec5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10d6087 - Browse repository at this point
Copy the full SHA 10d6087View commit details -
Exclude deprecated function from code coverage test
Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35d1c83 - Browse repository at this point
Copy the full SHA 35d1c83View commit details -
Use a std::mutex since std::weak_ptr::lock is atomic
Signed-off-by: Addisu Z. Taddese <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f2d6f4 - Browse repository at this point
Copy the full SHA 1f2d6f4View commit details