From 1fd13a08fc21017a0f22076c88c0168591b5593b Mon Sep 17 00:00:00 2001 From: rex-schilasky <49162693+rex-schilasky@users.noreply.github.com> Date: Wed, 19 Jun 2024 18:29:51 +0200 Subject: [PATCH] atomic boolean Initialization fixed --- testing/ecal/pubsub_test/src/pubsub_receive_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/ecal/pubsub_test/src/pubsub_receive_test.cpp b/testing/ecal/pubsub_test/src/pubsub_receive_test.cpp index df5e9c0ef1..ce63f1576a 100644 --- a/testing/ecal/pubsub_test/src/pubsub_receive_test.cpp +++ b/testing/ecal/pubsub_test/src/pubsub_receive_test.cpp @@ -226,11 +226,11 @@ TEST(PubSub, TestSubscriberSeen) // enable data loopback eCAL::Util::EnableLoopback(true); - std::atomic subscriber_seen_at_publication_start = false; - std::atomic subscriber_seen_at_publication_end = false; + std::atomic subscriber_seen_at_publication_start(false); + std::atomic subscriber_seen_at_publication_end(false); - std::atomic do_start_publication = false; - std::atomic publication_finished = false; + std::atomic do_start_publication(false); + std::atomic publication_finished(false); // publishing thread auto publisher_thread = [&]() {