Skip to content

Commit

Permalink
atomic boolean Initialization fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Jun 19, 2024
1 parent e0a850a commit 1fd13a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/ecal/pubsub_test/src/pubsub_receive_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ TEST(PubSub, TestSubscriberSeen)
// enable data loopback
eCAL::Util::EnableLoopback(true);

std::atomic<bool> subscriber_seen_at_publication_start = false;
std::atomic<bool> subscriber_seen_at_publication_end = false;
std::atomic<bool> subscriber_seen_at_publication_start(false);
std::atomic<bool> subscriber_seen_at_publication_end(false);

std::atomic<bool> do_start_publication = false;
std::atomic<bool> publication_finished = false;
std::atomic<bool> do_start_publication(false);
std::atomic<bool> publication_finished(false);

// publishing thread
auto publisher_thread = [&]() {
Expand Down

0 comments on commit 1fd13a0

Please sign in to comment.