From 51f85119800fb4c3e7c459a127d16cfd7ce363b0 Mon Sep 17 00:00:00 2001 From: Raul Sanchez-Mateos Lizano Date: Thu, 28 Jul 2022 20:11:27 +0200 Subject: [PATCH] Set last_heartbeat_count_ private member of WriterProxy as atomic (#2888) Signed-off-by: RaulSanchez --- src/cpp/rtps/reader/WriterProxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/rtps/reader/WriterProxy.h b/src/cpp/rtps/reader/WriterProxy.h index bbbb37abd6a..1bb88fde67c 100644 --- a/src/cpp/rtps/reader/WriterProxy.h +++ b/src/cpp/rtps/reader/WriterProxy.h @@ -371,7 +371,7 @@ class WriterProxy : public RTPSMessageSenderInterface //! Timed event to send initial acknack. TimedEvent* initial_acknack_; //! Last Heartbeatcount. - uint32_t last_heartbeat_count_; + std::atomic last_heartbeat_count_; //!Indicates if the heartbeat has the final flag set. std::atomic heartbeat_final_flag_; //!Is the writer alive