mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-13 17:16:42 +02:00
portable sleep function
This commit is contained in:
parent
17879618c7
commit
951548f412
12 changed files with 35 additions and 19 deletions
|
@ -16,7 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "processStream.h"
|
||||
#include "common/log.h"
|
||||
|
@ -67,7 +66,7 @@ void ProcessStream::worker()
|
|||
|
||||
if (nextTick >= currentTick)
|
||||
{
|
||||
usleep((nextTick - currentTick) * 1000);
|
||||
chronos::sleep(nextTick - currentTick);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue