summaryrefslogtreecommitdiff
path: root/sections.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 /sections.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 'sections.c')
-rw-r--r--sections.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sections.c b/sections.c
index 64923367..7c42a6ef 100644
--- a/sections.c
+++ b/sections.c
@@ -4,13 +4,14 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sections.c 1.9 2004/10/16 13:45:02 kls Exp $
+ * $Id: sections.c 1.10 2004/10/24 11:05:12 kls Exp $
*/
#include "sections.h"
#include <unistd.h>
#include "channels.h"
#include "device.h"
+#include "thread.h"
// --- cFilterHandle----------------------------------------------------------
@@ -185,7 +186,7 @@ void cSectionHandler::Action(void)
if (poll(pfd, NumFilters, 1000) > 0) {
bool DeviceHasLock = device->HasLock();
if (!DeviceHasLock)
- usleep(100000);
+ cCondWait::SleepMs(100);
for (int i = 0; i < NumFilters; i++) {
if (pfd[i].revents & POLLIN) {
cFilterHandle *fh = NULL;