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

@ -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
{