xrootd
Public Member Functions | Protected Member Functions
XrdSys::IOEvents::PollerErr1 Class Reference
Inheritance diagram for XrdSys::IOEvents::PollerErr1:
Inheritance graph
[legend]
Collaboration diagram for XrdSys::IOEvents::PollerErr1:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PollerErr1 ()
 ~PollerErr1 ()

Protected Member Functions

void Begin (XrdSysSemaphore *syncp, int &rc, const char **eTxt)
void Exclude (Channel *cP, bool &isLocked, bool dover=1)
bool Include (Channel *cP, int &eNum, const char **eTxt, bool &isLocked)
bool Modify (Channel *cP, int &eNum, const char **eTxt, bool &isLocked)
void Shutdown ()

Constructor & Destructor Documentation


Member Function Documentation

void XrdSys::IOEvents::PollerErr1::Begin ( XrdSysSemaphore *  syncp,
int &  rc,
const char **  eTxt 
) [inline, protected, virtual]

Start the polling event loop. An implementation must be supplied. Begin() is called via the internal BootStrap class from a new thread.

Implements XrdSys::IOEvents::Poller.

void XrdSys::IOEvents::PollerErr1::Exclude ( Channel *  cP,
bool &  isLocked,
bool  dover = 1 
) [inline, protected, virtual]

Remove a channel to the poll set. An implementation must be supplied. The channel is locked when this method is called but must be unlocked by the method if a command is sent to the poller thread and isLocked set to false.

Implements XrdSys::IOEvents::Poller.

bool XrdSys::IOEvents::PollerErr1::Include ( Channel *  cP,
int &  eNum,
const char **  eTxt,
bool &  isLocked 
) [inline, protected, virtual]

Add a channel to the poll set. An implementation must be supplied. The channel is locked when this method is called but must be unlocked by the method if a command is sent to the poller thread and isLocked set to false.

Implements XrdSys::IOEvents::Poller.

References XrdSys::IOEvents::Poller::GetFault().

bool XrdSys::IOEvents::PollerErr1::Modify ( Channel *  cP,
int &  eNum,
const char **  eTxt,
bool &  isLocked 
) [inline, protected, virtual]

Modify the event status of a channel. An implementation must be supplied. The channel is locked when this method is called but must be unlocked by the method if a command is sent to the poller thread and isLocked set to false.

Implements XrdSys::IOEvents::Poller.

References XrdSys::IOEvents::Poller::GetFault().

void XrdSys::IOEvents::PollerErr1::Shutdown ( ) [inline, protected, virtual]

Shutdown the poller. An implementation must be supplied. The shutdown method must release any allocated storage and close private file descriptors. The polling thread will have already been terminated and x-thread pipe closed. Warning: the derived destructor *must* call Stop() and do nothing else!

Implements XrdSys::IOEvents::Poller.


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