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 /sections.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 'sections.c')
-rw-r--r-- | sections.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |