Skip to content

Commit 32f674a

Browse files
committed
Refs #20567: Make DBQueue private
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
1 parent 7789702 commit 32f674a

4 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/cpp/fastdds/log/Log.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
#include <memory>
1919
#include <mutex>
2020

21-
#include <fastrtps/utils/DBQueue.h>
22-
21+
#include <fastdds/dds/log/Colors.hpp>
2322
#include <fastdds/dds/log/Log.hpp>
2423
#include <fastdds/dds/log/OStreamConsumer.hpp>
2524
#include <fastdds/dds/log/StdoutConsumer.hpp>
2625
#include <fastdds/dds/log/StdoutErrConsumer.hpp>
27-
#include <fastdds/dds/log/Colors.hpp>
26+
27+
#include <utils/DBQueue.hpp>
2828
#include <utils/SystemInfo.hpp>
2929
#include <utils/thread.hpp>
3030
#include <utils/threading.hpp>
@@ -341,7 +341,7 @@ struct LogResources
341341
return true;
342342
}
343343

344-
fastrtps::DBQueue<Log::Entry> logs_;
344+
DBQueue<Log::Entry> logs_;
345345
std::vector<std::unique_ptr<LogConsumer>> consumers_;
346346
eprosima::thread logging_thread_;
347347

src/cpp/rtps/builtin/discovery/database/DiscoveryDataBase.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
#include <set>
2828
#include <vector>
2929

30+
#include <nlohmann/json.hpp>
31+
32+
#include <fastdds/rtps/common/CacheChange.h>
3033
#include <fastdds/rtps/history/WriterHistory.h>
3134
#include <fastdds/rtps/writer/ReaderProxy.h>
32-
#include <fastdds/rtps/common/CacheChange.h>
33-
#include <fastrtps/utils/DBQueue.h>
3435

3536
#include <rtps/builtin/discovery/database/DiscoveryDataFilter.hpp>
36-
#include <rtps/builtin/discovery/database/DiscoveryParticipantInfo.hpp>
37-
#include <rtps/builtin/discovery/database/DiscoveryEndpointInfo.hpp>
3837
#include <rtps/builtin/discovery/database/DiscoveryDataQueueInfo.hpp>
39-
40-
#include <nlohmann/json.hpp>
38+
#include <rtps/builtin/discovery/database/DiscoveryEndpointInfo.hpp>
39+
#include <rtps/builtin/discovery/database/DiscoveryParticipantInfo.hpp>
40+
#include <utils/DBQueue.hpp>
4141

4242
namespace eprosima {
4343
namespace fastdds {
@@ -520,9 +520,9 @@ class DiscoveryDataBase
520520
////////////////
521521
// Variables
522522

523-
fastrtps::DBQueue<eprosima::fastdds::rtps::ddb::DiscoveryPDPDataQueueInfo> pdp_data_queue_;
523+
DBQueue<eprosima::fastdds::rtps::ddb::DiscoveryPDPDataQueueInfo> pdp_data_queue_;
524524

525-
fastrtps::DBQueue<eprosima::fastdds::rtps::ddb::DiscoveryEDPDataQueueInfo> edp_data_queue_;
525+
DBQueue<eprosima::fastdds::rtps::ddb::DiscoveryEDPDataQueueInfo> edp_data_queue_;
526526

527527
//! Covenient per-topic mapping of readers and writers to speed-up queries
528528
std::map<std::string, std::vector<eprosima::fastrtps::rtps::GUID_t>> readers_by_topic_;

src/cpp/rtps/transport/shared_mem/SharedMemLog.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
#include <fastdds/rtps/attributes/ThreadSettings.hpp>
2121
#include <fastdds/rtps/common/Locator.h>
22-
#include <fastrtps/utils/DBQueue.h>
2322

2423
#include <rtps/transport/shared_mem/SharedMemManager.hpp>
24+
#include <utils/DBQueue.hpp>
2525
#include <utils/SystemInfo.hpp>
2626
#include <utils/thread.hpp>
2727
#include <utils/threading.hpp>
@@ -334,7 +334,7 @@ class PacketsLog
334334

335335
struct Resources
336336
{
337-
eprosima::fastrtps::DBQueue<typename TPacketConsumer::Pkt> logs;
337+
DBQueue<typename TPacketConsumer::Pkt> logs;
338338
std::vector<std::unique_ptr<SHMPacketFileConsumer>> consumers;
339339
eprosima::thread logging_thread;
340340

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
//
15-
#ifndef DBQUEUE_H
16-
#define DBQUEUE_H
15+
#ifndef _FASTDDS_DBQUEUE_HPP
16+
#define _FASTDDS_DBQUEUE_HPP
1717

18-
#include <queue>
19-
#include <mutex>
20-
#include <memory>
2118
#include <condition_variable>
19+
#include <memory>
20+
#include <mutex>
21+
#include <queue>
2222

2323
namespace eprosima {
24-
namespace fastrtps {
24+
namespace fastdds {
2525

2626
/**
2727
* Double buffered, threadsafe queue for MPSC (multi-producer, single-consumer) comms.
@@ -151,7 +151,7 @@ class DBQueue
151151
};
152152

153153

154-
} // namespace fastrtps
154+
} // namespace fastdds
155155
} // namespace eprosima
156156

157157
#endif // ifndef DBQUEUE_H

0 commit comments

Comments
 (0)