vdr  1.7.31
Public Member Functions | Private Types | Private Attributes | List of all members
cPoller Class Reference

#include <tools.h>

Public Member Functions

 cPoller (int FileHandle=-1, bool Out=false)
bool Add (int FileHandle, bool Out)
bool Poll (int TimeoutMs=0)
 cPoller (int FileHandle=-1, bool Out=false)
bool Add (int FileHandle, bool Out)
bool Poll (int TimeoutMs=0)

Private Types

enum  { MaxPollFiles = 16 }
enum  { MaxPollFiles = 16 }

Private Attributes

pollfd pfd [MaxPollFiles]
int numFileHandles

Detailed Description

Definition at line 339 of file include/vdr/tools.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator:
MaxPollFiles 

Definition at line 341 of file include/vdr/tools.h.

anonymous enum
private
Enumerator:
MaxPollFiles 

Definition at line 341 of file tools.h.

Constructor & Destructor Documentation

cPoller::cPoller ( int  FileHandle = -1,
bool  Out = false 
)

Definition at line 1314 of file tools.c.

References Add(), and numFileHandles.

cPoller::cPoller ( int  FileHandle = -1,
bool  Out = false 
)

Member Function Documentation

bool cPoller::Add ( int  FileHandle,
bool  Out 
)

Definition at line 1320 of file tools.c.

References esyslog, MaxPollFiles, numFileHandles, and pfd.

Referenced by cPoller(), cDvbSdFfDevice::Poll(), and cDvbHdFfDevice::Poll().

bool cPoller::Add ( int  FileHandle,
bool  Out 
)
bool cPoller::Poll ( int  TimeoutMs = 0)
bool cPoller::Poll ( int  TimeoutMs = 0)

Member Data Documentation

int cPoller::numFileHandles
private

Definition at line 343 of file include/vdr/tools.h.

Referenced by Add(), cPoller(), and Poll().

pollfd cPoller::pfd
private

Definition at line 342 of file include/vdr/tools.h.

Referenced by Add(), and Poll().


The documentation for this class was generated from the following files: