#include <dispatch.h>
Public Member Functions | |
StandardDispatcher () | |
virtual | ~StandardDispatcher () |
virtual bool | run (bool infinite=true) |
virtual void | exit () |
virtual void | move (Dispatcher &d) |
virtual bool | idle () const |
This class implements a event dispatcher on top of the standard UNIX select() function.
SigCX::StandardDispatcher::StandardDispatcher | ( | ) |
Constructor.
virtual SigCX::StandardDispatcher::~StandardDispatcher | ( | ) | [virtual] |
Destructor.
virtual bool SigCX::StandardDispatcher::run | ( | bool | infinite = true |
) | [virtual] |
Run the dispatcher.
Run the dispatcher event loop, receiving events and calling the registered callbacks.
infinite | If false, run only one iteration, else run until exit() is called on this dispatcher instance. |
true
if exit() was called. Implements SigCX::Dispatcher.
virtual void SigCX::StandardDispatcher::exit | ( | ) | [virtual] |
virtual void SigCX::StandardDispatcher::move | ( | Dispatcher & | d | ) | [virtual] |
Move all callbacks to another dispatcher.
d | The dispatcher to move the callbacks to. |
Implements SigCX::Dispatcher.
virtual bool SigCX::StandardDispatcher::idle | ( | ) | const [virtual] |