7#ifndef CARLA_ROS2_MIDDLEWARE_TESTING
9#include <fastdds/dds/domain/DomainParticipant.hpp>
14#include <unordered_map>
34 static eprosima::fastdds::dds::DomainParticipant*
acquire();
42 static void retain_type(
const std::string& type_name);
Refcounted singleton DomainParticipant shared across all FastDDS publishers and subscribers in the pr...
static void release_type(const std::string &type_name)
Release one use of type_name.
FastDDSSharedParticipant()=delete
static uint32_t _refcount
static eprosima::fastdds::dds::DomainParticipant * _participant
static eprosima::fastdds::dds::DomainParticipant * acquire()
Increment the refcount and return the shared DomainParticipant.
static void retain_type(const std::string &type_name)
Notify the singleton that one more endpoint is using type_name so that unregister_type() is deferred ...
static std::unordered_map< std::string, uint32_t > _type_refcounts
static void release()
Decrement the refcount.
This file contains definitions of common data structures used in traffic manager.