From a7adbf16fe642e8dfbd21f713266fb6046976c16 Mon Sep 17 00:00:00 2001 From: Irene Bandera Date: Tue, 14 May 2024 10:25:51 +0200 Subject: [PATCH] Remove Wait_before_destroying_time_ms from Writer Signed-off-by: Irene Bandera --- amlip_cpp/src/cpp/dds/Writer.hpp | 1 - amlip_cpp/src/cpp/dds/impl/Writer.ipp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/amlip_cpp/src/cpp/dds/Writer.hpp b/amlip_cpp/src/cpp/dds/Writer.hpp index 7a0c3855..ad907698 100644 --- a/amlip_cpp/src/cpp/dds/Writer.hpp +++ b/amlip_cpp/src/cpp/dds/Writer.hpp @@ -159,7 +159,6 @@ class Writer : public WriterListener }; constexpr const unsigned int Wait_for_acknowledgments_time_s = 1; -constexpr const unsigned int Wait_before_destroying_time_ms = 200; //! \c Writer to stream serializator template diff --git a/amlip_cpp/src/cpp/dds/impl/Writer.ipp b/amlip_cpp/src/cpp/dds/impl/Writer.ipp index 9b0272c6..1712933d 100644 --- a/amlip_cpp/src/cpp/dds/impl/Writer.ipp +++ b/amlip_cpp/src/cpp/dds/impl/Writer.ipp @@ -78,10 +78,6 @@ Writer::~Writer() logWarning( AMLIPCPP_DDS_WRITER, "Writer " << *this << " is being destroyed before all messages have been sent."); } - - // TODO change this once it is fixed in fast - // Sleep for 200ms to let Readers to read the messages from this Writer before dying - eprosima::utils::sleep_for(Wait_before_destroying_time_ms); } template