Webmaster  |  Imprint 
Platinum
Platinum C++ Framework
Main  |  License  |  Documentation  |  Download  |  Support 

EventLoopBase Class Reference

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

#include <Pt/System/EventLoop.h>

Inheritance diagram for EventLoopBase:

SelectorBase Connectable NonCopyable 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 (unsigned int 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 © 2003-2007 The Pt Development Team
Pt 1.0