From 9f51fcad223572c459e7fc0705dfba44da38aaad Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 24 Oct 2004 11:12:05 +0200 Subject: Added cCondWait::Sleep() and using it to replace all usleep() calls --- diseqc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'diseqc.c') diff --git a/diseqc.c b/diseqc.c index 0766db8a..801e1cd8 100644 --- a/diseqc.c +++ b/diseqc.c @@ -4,12 +4,13 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: diseqc.c 1.2 2002/12/07 13:44:56 kls Exp $ + * $Id: diseqc.c 1.3 2004/10/24 11:04:56 kls Exp $ */ #include "diseqc.h" #include #include "sources.h" +#include "thread.h" // -- cDiseqc ---------------------------------------------------------------- @@ -61,7 +62,7 @@ char *cDiseqc::Wait(char *s) int n = strtol(s, &p, 10); if (!errno && p != s && n >= 0) { if (!parsing) - usleep(n * 1000); + cCondWait::SleepMs(n); return p; } esyslog("ERROR: illegal value for wait time in '%s'", s - 1); -- cgit v1.2.3