summaryrefslogtreecommitdiff
path: root/diseqc.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-24 11:12:05 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-24 11:12:05 +0200
commit9f51fcad223572c459e7fc0705dfba44da38aaad (patch)
tree35dd9798d445f3c9b9a67542a1ed70d754564393 /diseqc.c
parent70e60380562fb25a7acce9b47c75842d60722dd0 (diff)
downloadvdr-9f51fcad223572c459e7fc0705dfba44da38aaad.tar.gz
vdr-9f51fcad223572c459e7fc0705dfba44da38aaad.tar.bz2
Added cCondWait::Sleep() and using it to replace all usleep() calls
Diffstat (limited to 'diseqc.c')
-rw-r--r--diseqc.c5
1 files changed, 3 insertions, 2 deletions
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 <ctype.h>
#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);