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

@ -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();
}
}