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

io_event_loop 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

 io_event_loop ()
 Constructor.

 ~io_event_loop ()
 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 io_handler
class timer


Constructor & Destructor Documentation

io_event_loop::io_event_loop  
 

Constructor.

io_event_loop::~io_event_loop  
 

Destructor.


Member Function Documentation

void io_event_loop::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 io_event_loop::run_once  
 

Invokes the event loop once through.

void io_event_loop::terminate  
 

Signals that the event loop should terminate.

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

void io_event_loop::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 io_handler [friend]
 

friend class timer [friend]
 


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