mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 09:57:41 +00:00
[#4049] Fixed compile
This commit is contained in:
parent
6331acdcbf
commit
b5cf3a4204
@ -11,6 +11,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <functional>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
using namespace isc::asiolink;
|
||||
@ -91,7 +92,7 @@ TEST(IOService, runOneForStopped) {
|
||||
// Call runOneFor() with runtime of 500ms in a thread.
|
||||
size_t cnt = 0;
|
||||
bool timed_out = false;
|
||||
std::thread th([this, io_service, &timed_out, &cnt]() {
|
||||
std::thread th([io_service, &timed_out, &cnt]() {
|
||||
cnt = io_service->runOneFor(500 * 1000, timed_out);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user