From: Remi Gacogne Date: Wed, 7 Apr 2021 10:07:56 +0000 (+0200) Subject: dnsdist: Prevent a race in the DelayPipe tests X-Git-Tag: dnsdist-1.6.0-rc1~1^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e84a41b9800026cc42d2c84aaaefa4a2ff7587;p=thirdparty%2Fpdns.git dnsdist: Prevent a race in the DelayPipe tests --- diff --git a/pdns/dnsdistdist/test-delaypipe_hh.cc b/pdns/dnsdistdist/test-delaypipe_hh.cc index e376cb9330..6f5559a9e2 100644 --- a/pdns/dnsdistdist/test-delaypipe_hh.cc +++ b/pdns/dnsdistdist/test-delaypipe_hh.cc @@ -25,9 +25,9 @@ BOOST_AUTO_TEST_CASE(test_object_pipe) { }; -int done=0; +std::atomic done = 0; BOOST_AUTO_TEST_CASE(test_delay_pipe_small) { - done=0; + done = 0; struct Work { int i;