Skip to content

Commit

Permalink
Refs #20567: Make shared_mutex private
Browse files Browse the repository at this point in the history
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Mar 11, 2024
1 parent 0122a12 commit 75ad22d
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/BuiltinProtocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <fastdds/rtps/attributes/RTPSParticipantAttributes.h>
#include <fastdds/rtps/builtin/data/ContentFilterProperty.hpp>

#include <fastrtps/utils/shared_mutex.hpp>
#include <utils/shared_mutex.hpp>

namespace eprosima {

Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <mutex>
#include <chrono>

#include "fastrtps/utils/shared_mutex.hpp"
#include <fastdds/dds/builtin/typelookup/TypeLookupManager.hpp>
#include <fastdds/dds/domain/DomainParticipant.hpp>
#include <fastdds/dds/domain/DomainParticipantFactory.hpp>
Expand Down Expand Up @@ -54,6 +53,7 @@
#include <rtps/history/TopicPayloadPoolRegistry.hpp>
#include <rtps/network/ExternalLocatorsProcessor.hpp>
#include <rtps/participant/RTPSParticipantImpl.h>
#include <utils/shared_mutex.hpp>

namespace eprosima {
namespace fastrtps {
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/builtin/discovery/participant/PDPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <fastdds/rtps/reader/StatefulReader.h>
#include <fastdds/rtps/writer/ReaderProxy.h>
#include <fastdds/rtps/writer/StatefulWriter.h>
#include <fastrtps/utils/shared_mutex.hpp>
#include <fastrtps/utils/TimeConversion.h>

#include <rtps/builtin/BuiltinProtocols.h>
Expand All @@ -47,6 +46,7 @@
#include <rtps/builtin/discovery/participant/timedevent/DSClientEvent.h>
#include <rtps/builtin/liveliness/WLP.h>
#include <rtps/participant/RTPSParticipantImpl.h>
#include <utils/shared_mutex.hpp>
#include <utils/SystemInfo.hpp>

using namespace eprosima::fastrtps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
#include <rtps/participant/RTPSParticipantImpl.h>

#include <fastdds/dds/log/Log.hpp>
#include <fastrtps/utils/shared_mutex.hpp>

#include <rtps/builtin/BuiltinProtocols.h>
#include <rtps/builtin/discovery/participant/timedevent/DSClientEvent.h>
#include <rtps/builtin/discovery/participant/PDPClient.h>
#include <rtps/builtin/discovery/endpoint/EDPClient.h>
#include <rtps/builtin/discovery/participant/PDPClient.h>
#include <rtps/builtin/discovery/participant/timedevent/DSClientEvent.h>
#include <utils/shared_mutex.hpp>

namespace eprosima {
namespace fastdds {
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/messages/MessageReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
#include <fastdds/dds/log/Log.hpp>
#include <fastdds/rtps/reader/RTPSReader.h>
#include <fastdds/rtps/writer/RTPSWriter.h>
#include <fastrtps/utils/shared_mutex.hpp>

#include <rtps/messages/MessageReceiver.h>
#include <rtps/participant/RTPSParticipantImpl.h>
#include <statistics/rtps/messages/RTPSStatisticsMessages.hpp>
#include <statistics/rtps/StatisticsBase.hpp>
#include <utils/shared_mutex.hpp>

#define INFO_SRC_SUBMSG_LENGTH 20

Expand Down
3 changes: 2 additions & 1 deletion src/cpp/rtps/messages/MessageReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

#include <fastdds/rtps/common/all_common.h>
#include <fastdds/rtps/common/VendorId_t.hpp>
#include <fastrtps/utils/shared_mutex.hpp>

#include <utils/shared_mutex.hpp>

namespace eprosima {
namespace fastrtps {
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/participant/RTPSParticipantImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <fastdds/rtps/resources/ResourceEvent.h>
#include <fastdds/rtps/transport/SenderResource.h>
#include <fastdds/statistics/rtps/monitor_service/interfaces/IConnectionsQueryable.hpp>
#include <fastrtps/utils/shared_mutex.hpp>

#include "../flowcontrol/FlowControllerFactory.hpp"
#include <rtps/messages/MessageReceiver.h>
Expand All @@ -56,6 +55,7 @@
#include <rtps/network/ReceiverResource.h>
#include <statistics/rtps/StatisticsBase.hpp>
#include <statistics/types/monitorservice_types.h>
#include <utils/shared_mutex.hpp>
#include <utils/Semaphore.hpp>

#if HAVE_SECURITY
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/security/SecurityManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
#include <fastdds/rtps/resources/TimedEvent.h>
#include <fastdds/rtps/security/authentication/Handshake.h>
#include <fastdds/rtps/security/common/ParticipantGenericMessage.h>
#include <fastrtps/utils/shared_mutex.hpp>

#include <rtps/security/ISecurityPluginFactory.h>
#include <utils/ProxyPool.hpp>
#include <utils/shared_mutex.hpp>

namespace eprosima {
namespace fastrtps {
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/writer/LivelinessManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

#include <fastdds/rtps/resources/TimedEvent.h>
#include <fastdds/utils/collections/ResourceLimitedVector.hpp>
#include <fastrtps/utils/shared_mutex.hpp>

#include <rtps/writer/LivelinessData.hpp>
#include <utils/shared_mutex.hpp>

namespace eprosima {
namespace fastrtps {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/unittest/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ gtest_discover_tests(SystemInfoTests)

add_executable(SharedMutexTests shared_mutex_tests.cpp)
target_compile_definitions(SharedMutexTests PUBLIC USE_THIRDPARTY_SHARED_MUTEX=1)
target_include_directories(SharedMutexTests PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_include_directories(SharedMutexTests PRIVATE ${PROJECT_SOURCE_DIR}/src/cpp)
target_link_libraries(SharedMutexTests PUBLIC GTest::gtest)
gtest_discover_tests(SharedMutexTests)

Expand Down
3 changes: 2 additions & 1 deletion test/unittest/utils/shared_mutex_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
#include <thread>
#include <vector>

#include <fastrtps/utils/shared_mutex.hpp>
#include <gtest/gtest.h>

#include <utils/shared_mutex.hpp>

using namespace std;
using namespace std::chrono;
using namespace eprosima;
Expand Down

0 comments on commit 75ad22d

Please sign in to comment.