Skip to content

Commit

Permalink
avoid using dds common public mutex directly (#134)
Browse files Browse the repository at this point in the history
* avoid using other component public mutex directly

* initialize publish_callback once

Signed-off-by: Chen Lihui <[email protected]>
  • Loading branch information
Chen Lihui authored Nov 3, 2023
1 parent c7c6cc7 commit f0cdb72
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 139 deletions.
1 change: 1 addition & 0 deletions rmw_connextdds_common/include/rmw_connextdds/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct rmw_context_impl_s
{
public:
rmw_dds_common::Context common;
std::mutex common_mutex;
rmw_context_t * base;

DDS_DomainId_t domain_id;
Expand Down
4 changes: 2 additions & 2 deletions rmw_connextdds_common/include/rmw_connextdds/graph_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ rmw_connextdds_graph_finalize(rmw_context_impl_t * const ctx);

rmw_ret_t
rmw_connextdds_graph_publish_update(
rmw_context_impl_t * const ctx,
void * const msg);
const rmw_publisher_t * const ctx,
const void * const msg);

rmw_ret_t
rmw_connextdds_graph_on_node_created(
Expand Down
Loading

0 comments on commit f0cdb72

Please sign in to comment.