Astyle fixes

pull/11696/head
Michal Paszta 2019-10-02 16:27:05 +02:00 committed by adbridge
parent 2e222d9bfc
commit 40c037fc72
4 changed files with 7 additions and 4 deletions

View File

@ -162,7 +162,10 @@ TEST_F(TestInternetSocket, close_during_read)
socket->add_reader(); socket->add_reader();
// The reader will be removed after we attempt to close the socket. // The reader will be removed after we attempt to close the socket.
auto delay = std::chrono::milliseconds(2); auto delay = std::chrono::milliseconds(2);
auto fut = std::async(std::launch::async, [&](){std::this_thread::sleep_for(delay); socket->rem_reader();}); auto fut = std::async(std::launch::async, [&]() {
std::this_thread::sleep_for(delay);
socket->rem_reader();
});
// close() will block until the other thread calls rem_reader() // close() will block until the other thread calls rem_reader()
auto start = std::chrono::system_clock::now(); auto start = std::chrono::system_clock::now();