mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 01:16:16 +02:00
portable sleep function
This commit is contained in:
parent
17879618c7
commit
951548f412
12 changed files with 35 additions and 19 deletions
|
@ -191,7 +191,7 @@ int main (int argc, char **argv)
|
|||
{
|
||||
logS(kLogErr) << "Exception: " << e.what() << std::endl;
|
||||
}
|
||||
usleep(500*1000);
|
||||
chronos::sleep(500);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ int main (int argc, char **argv)
|
|||
logO << "Latency: " << latency << "\n";
|
||||
controller->start(pcmDevice, host, port, latency);
|
||||
while(!g_terminated)
|
||||
usleep(100*1000);
|
||||
chronos::sleep(100);
|
||||
controller->stop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue