vdr 2.7.5
cPoller Class Reference

#include <tools.h>

Public Member Functions

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

Private Types

enum  { MaxPollFiles = 64 }

Private Attributes

pollfd pfd [MaxPollFiles]
int numFileHandles

Detailed Description

Definition at line 434 of file tools.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxPollFiles 

Definition at line 436 of file tools.h.

Constructor & Destructor Documentation

◆ cPoller()

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

Definition at line 1547 of file tools.c.

References Add(), and numFileHandles.

Member Function Documentation

◆ Add()

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

Definition at line 1553 of file tools.c.

References esyslog, MaxPollFiles, numFileHandles, and pfd.

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

◆ Del()

void cPoller::Del ( int FileHandle,
bool Out )

Definition at line 1572 of file tools.c.

References numFileHandles, and pfd.

◆ Poll()

bool cPoller::Poll ( int TimeoutMs = 0)

Member Data Documentation

◆ numFileHandles

int cPoller::numFileHandles
private

Definition at line 438 of file tools.h.

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

◆ pfd

pollfd cPoller::pfd[MaxPollFiles]
private

Definition at line 437 of file tools.h.

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


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