IBR-DTN
1.0.0
|
#include <EventSwitch.h>
Public Member Functions | |
void | loop (size_t threads, bool profiling=false) |
bool | empty () const |
void | shutdown () |
![]() | |
IntegratedComponent () | |
virtual | ~IntegratedComponent () |
virtual void | initialize () throw () |
virtual void | startup () throw () |
virtual void | terminate () throw () |
![]() | |
virtual | ~Component ()=0 |
Static Public Member Functions | |
static EventSwitch & | getInstance () |
static void | queue (EventProcessor &proc, Event *evt) |
Protected Member Functions | |
virtual void | componentUp () throw () |
virtual void | componentDown () throw () |
bool | isStalled () |
Friends | |
class | Worker |
Definition at line 40 of file EventSwitch.h.
|
protectedvirtual |
Implements dtn::daemon::IntegratedComponent.
Definition at line 65 of file EventSwitch.cpp.
References _shutdown.
|
protectedvirtual |
Implements dtn::daemon::IntegratedComponent.
Definition at line 48 of file EventSwitch.cpp.
bool dtn::core::EventSwitch::empty | ( | ) | const |
checks if all the queues are empty
Definition at line 83 of file EventSwitch.cpp.
|
static |
Definition at line 249 of file EventSwitch.cpp.
Referenced by dtn::daemon::NativeEventLoop::__cancellation(), and dtn::daemon::NativeEventLoop::run().
|
protected |
Definition at line 161 of file EventSwitch.cpp.
void dtn::core::EventSwitch::loop | ( | size_t | threads, |
bool | profiling = false |
||
) |
Definition at line 168 of file EventSwitch.cpp.
References _running.
Referenced by dtn::daemon::NativeEventLoop::run().
|
static |
Queue an event to one of the event queues of the event switch.
Definition at line 206 of file EventSwitch.cpp.
References dtn::core::Event::prio.
void dtn::core::EventSwitch::shutdown | ( | ) |
Bring down the EventSwitch. Do not accept any further events, but deliver all events in the queue.
Definition at line 236 of file EventSwitch.cpp.
References _shutdown.
Referenced by dtn::daemon::NativeEventLoop::__cancellation().
|
friend |
Definition at line 145 of file EventSwitch.h.