class Poller_sigfd

Implementation of Poller for Vitaly Luban's sig-per-fd (O_ONESIGFD) patch

Inheritance:


Public Methods

[more]virtual int add(int fd, Client* client, short eventmask)
Add a file descriptor to the set we monitor.
[more]virtual int del(int fd)
Remove a file descriptor


Inherited from Poller_sigio:

Public Methods

ovirtual int setSignum(int signum)
oint init()
ovoid shutdown()
ovirtual int setMask(int fd, short eventmask)
ovirtual int orMask(int fd, short eventmask)
ovirtual int andMask(int fd, short eventmask)
ovirtual void clearReadiness(int fd, short eventmask)
ovirtual int waitForEvents(int timeout_millisec)
ovirtual int getNextEvent(PollEvent* e)
ovirtual int waitAndDispatchEvents(int timeout_millisec)


Inherited from Poller:

Public Methods

oint initWakeUpPipe()
oint wakeUp()

Public Members

ostruct PollEvent
class Client
A class to handle a particular file descriptor's readiness events


Documentation

Implementation of Poller for Vitaly Luban's sig-per-fd (O_ONESIGFD) patch
ovirtual int add(int fd, Client* client, short eventmask)
Add a file descriptor to the set we monitor. Caller should already have established a handler for SIGIO.
Parameters:
- fd file descriptor to add
- client object to handle events for this fd. May use same client with more than one fd.
eventmask - initial event mask for this fd

ovirtual int del(int fd)
Remove a file descriptor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.