mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[#225] Fix compiler complaint about atomic
src/bin/dhcp4/tests/kea_controller_unittest.cc src/bin/dhcp6/tests/kea_controller_unittest.cc
This commit is contained in:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user