Skip to content

Commit

Permalink
Keep reference to factory in CustomParticipantInfo.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Jun 12, 2024
1 parent 97edce2 commit f9b0a68
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <vector>

#include "fastdds/dds/domain/DomainParticipant.hpp"
#include "fastdds/dds/domain/DomainParticipantFactory.hpp"
#include "fastdds/dds/domain/DomainParticipantListener.hpp"
#include "fastdds/dds/publisher/Publisher.hpp"
#include "fastdds/dds/subscriber/Subscriber.hpp"
Expand Down Expand Up @@ -91,6 +92,9 @@ typedef struct UseCountTopic

typedef struct CustomParticipantInfo
{
std::shared_ptr<eprosima::fastdds::dds::DomainParticipantFactory> factory_ =
eprosima::fastdds::dds::DomainParticipantFactory::get_shared_instance();

eprosima::fastdds::dds::DomainParticipant * participant_{nullptr};
ParticipantListener * listener_{nullptr};

Expand Down

0 comments on commit f9b0a68

Please sign in to comment.