Skip to content

Commit

Permalink
Set last_heartbeat_count_ private member of WriterProxy as atomic (#2888
Browse files Browse the repository at this point in the history
)

Signed-off-by: RaulSanchez <raul@eprosima.com>
  • Loading branch information
rsanchez15 authored Jul 28, 2022
1 parent d4bc909 commit 51f8511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/rtps/reader/WriterProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t> last_heartbeat_count_;
//!Indicates if the heartbeat has the final flag set.
std::atomic<bool> heartbeat_final_flag_;
//!Is the writer alive
Expand Down

0 comments on commit 51f8511

Please sign in to comment.