Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IOEventLoop Class Reference

List of all members.

Detailed Description

An event loop that multiplexes a set of handlers.

May be used as a Thread (with start()) or in the current Thread (with run()).


Public Methods

 IOEventLoop ()
 Constructor.

 ~IOEventLoop ()
 Destructor.

void run ()
 Invokes the event loop.

void run_once ()
 Invokes the event loop once through.

void terminate ()
 Signals that the event loop should terminate.

void wake ()
 Wakes the event loop up immediately.


Friends

class IOHandler
class Timer


Constructor & Destructor Documentation

IOEventLoop::IOEventLoop  
 

Constructor.

IOEventLoop::~IOEventLoop  
 

Destructor.


Member Function Documentation

void IOEventLoop::run  
 

Invokes the event loop.

Returns only when an event handler (or other Thread) signals the event loop to terminate via the terminate method.

void IOEventLoop::run_once  
 

Invokes the event loop once through.

void IOEventLoop::terminate  
 

Signals that the event loop should terminate.

May be invoked either by event handlers or by another Thread.

void IOEventLoop::wake  
 

Wakes the event loop up immediately.

May be invoked either by event handlers or by another Thread.


Friends And Related Function Documentation

friend class IOHandler [friend]
 

friend class Timer [friend]
 


The documentation for this class was generated from the following file:
Generated on Fri Dec 20 13:35:11 2002 for NMSTL