diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-24 11:12:05 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-24 11:12:05 +0200 |
commit | 9f51fcad223572c459e7fc0705dfba44da38aaad (patch) | |
tree | 35dd9798d445f3c9b9a67542a1ed70d754564393 /diseqc.c | |
parent | 70e60380562fb25a7acce9b47c75842d60722dd0 (diff) | |
download | vdr-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |