Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

EventLoopBase Class Reference

Thread-safe event loop supporting I/O multiplexing and Timers.

#include <cxxtools/eventloop.h>

Inheritance diagram for EventLoopBase:

SelectorBase Connectable EventLoop

List of all members.

Public Member Functions

virtual ~EventLoopBase ()
 Destructs the EventLoop.
void run ()
 Starts the event loop.
void processEvents ()
 Processes all events which are currently in the event queue.
void exit ()
 Stops the EventLoop.
void setIdleTimeout (size_t msecs)
 Sets the idle timeout.
unsigned int idleTimeout () const
 Returns the idle timeout.

Public Attributes

Signal timeout
 Notifies about wait timeouts This signal is send when the timeout given to a wait call of the selector expires and no activity occured.
Signal< const Event & > event
 Reports all events TODO: rename to eventReady.

Protected Member Functions

 EventLoopBase ()
 Constructs the EventLoop.
virtual void onRun ()=0
virtual void onExit ()=0
virtual void onProcessEvents ()=0

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6