portable sleep function

This commit is contained in:
badaix 2016-10-28 10:10:58 +02:00
parent 17879618c7
commit 951548f412
12 changed files with 35 additions and 19 deletions

View file

@ -164,7 +164,7 @@ int main(int argc, char* argv[])
std::thread t(func, &io_service);
while (!g_terminated)
usleep(100*1000);
chronos::sleep(100);
io_service.stop();
t.join();