diff options
author | Thomas Markwalder <tmark@isc.org> | 2023-03-24 13:55:53 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2023-03-24 17:50:00 +0100 |
commit | 89820a1a73cf24e5a901484dfb51f3a0ba587a73 (patch) | |
tree | b4736050639ee4085e9b4666631cae4e31e29a08 | |
parent | [#225] Fixed typo in network_unittest.cc (diff) | |
download | kea-89820a1a73cf24e5a901484dfb51f3a0ba587a73.tar.xz kea-89820a1a73cf24e5a901484dfb51f3a0ba587a73.zip |
[#225] Fix compiler complaint about atomic
src/bin/dhcp4/tests/kea_controller_unittest.cc
src/bin/dhcp6/tests/kea_controller_unittest.cc
-rw-r--r-- | src/bin/dhcp4/tests/kea_controller_unittest.cc | 2 | ||||
-rw-r--r-- | src/bin/dhcp6/tests/kea_controller_unittest.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/dhcp4/tests/kea_controller_unittest.cc b/src/bin/dhcp4/tests/kea_controller_unittest.cc index d164a23678..82ca8fa940 100644 --- a/src/bin/dhcp4/tests/kea_controller_unittest.cc +++ b/src/bin/dhcp4/tests/kea_controller_unittest.cc @@ -230,7 +230,7 @@ public: void runTimersWithTimeout(const IOServicePtr& io_service, const long timeout_ms, std::function<bool()> cond = std::function<bool()>()) { IntervalTimer timer(*io_service); - std::atomic<bool> stopped = false; + std::atomic<bool> stopped(false); timer.setup([&io_service, &stopped]() { stopped = true; io_service->stop(); diff --git a/src/bin/dhcp6/tests/kea_controller_unittest.cc b/src/bin/dhcp6/tests/kea_controller_unittest.cc index d932d42236..bb09ca3903 100644 --- a/src/bin/dhcp6/tests/kea_controller_unittest.cc +++ b/src/bin/dhcp6/tests/kea_controller_unittest.cc @@ -217,7 +217,7 @@ public: void runTimersWithTimeout(const IOServicePtr& io_service, const long timeout_ms, std::function<bool()> cond = std::function<bool()>()) { IntervalTimer timer(*io_service); - std::atomic<bool> stopped = false; + std::atomic<bool> stopped(false); timer.setup([&io_service, &stopped]() { stopped = true; io_service->stop(); |