mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-31 07:09:44 +02:00
portable sleep function
This commit is contained in:
parent
17879618c7
commit
951548f412
12 changed files with 35 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue