Skip to content

Commit

Permalink
Update rmw_context_impl_t definition (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
hidmic authored Sep 14, 2021
1 parent 938d7d1 commit 380ff6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rmw_connextdds_common/include/rmw_connextdds/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ enum class RMW_Connext_RequestReplyMapping
Extended
};

struct rmw_context_impl_t
// Definition of struct rmw_context_impl_s as declared in rmw/init.h
struct rmw_context_impl_s
{
rmw_dds_common::Context common;
rmw_context_t * base;
Expand Down Expand Up @@ -148,7 +149,7 @@ struct rmw_context_impl_t
std::map<std::string, RMW_Connext_MessageTypeSupport *> registered_types;
std::mutex endpoint_mutex;

explicit rmw_context_impl_t(rmw_context_t * const base)
explicit rmw_context_impl_s(rmw_context_t * const base)
: common(),
base(base),
factory(nullptr),
Expand All @@ -168,7 +169,7 @@ struct rmw_context_impl_t
common.sub = nullptr;
}

~rmw_context_impl_t()
~rmw_context_impl_s()
{
if (0u != this->node_count) {
RMW_CONNEXT_LOG_ERROR_A("not all nodes finalized: %lu", this->node_count)
Expand Down

0 comments on commit 380ff6f

Please sign in to comment.