IBR-DTNSuite
0.8
|
#include <EventSwitch.h>
Classes | |
class | Task |
class | Worker |
Public Member Functions | |
void | loop (size_t threads=0) |
void | clear () |
Static Public Member Functions | |
static EventSwitch & | getInstance () |
Protected Member Functions | |
virtual void | componentUp () |
virtual void | componentDown () |
Static Protected Member Functions | |
static void | registerEventReceiver (string eventName, EventReceiver *receiver) |
static void | unregisterEventReceiver (string eventName, EventReceiver *receiver) |
static void | raiseEvent (Event *evt) |
Friends | |
class | Event |
class | EventReceiver |
class | Worker |
Definition at line 41 of file EventSwitch.h.
void dtn::core::EventSwitch::clear | ( | ) |
Definition at line 288 of file EventSwitch.cpp.
void dtn::core::EventSwitch::componentDown | ( | ) | [protected, virtual] |
Implements dtn::daemon::IntegratedComponent.
Definition at line 35 of file EventSwitch.cpp.
References ibrcommon::Conditional::abort(), and ibrcommon::Conditional::wait().
void dtn::core::EventSwitch::componentUp | ( | ) | [protected, virtual] |
Implements dtn::daemon::IntegratedComponent.
Definition at line 31 of file EventSwitch.cpp.
EventSwitch & dtn::core::EventSwitch::getInstance | ( | ) | [static] |
Definition at line 277 of file EventSwitch.cpp.
Referenced by __daemon_run(), raiseEvent(), registerEventReceiver(), and unregisterEventReceiver().
void dtn::core::EventSwitch::loop | ( | size_t | threads = 0 | ) |
void dtn::core::EventSwitch::raiseEvent | ( | Event * | evt | ) | [static, protected] |
Definition at line 211 of file EventSwitch.cpp.
References ibrcommon::Conditional::abort(), dtn::core::Event::decrement_ref_count(), dtn::core::GlobalEvent::getAction(), getInstance(), dtn::core::Event::getName(), dtn::core::GlobalEvent::GLOBAL_SHUTDOWN, dtn::core::Event::prio, dtn::core::EventDebugger::raiseEvent(), dtn::core::Event::set_ref_count(), and ibrcommon::Conditional::signal().
void dtn::core::EventSwitch::registerEventReceiver | ( | string | eventName, |
EventReceiver * | receiver | ||
) | [static, protected] |
Definition at line 157 of file EventSwitch.cpp.
References getInstance().
Referenced by dtn::core::EventReceiver::bindEvent().
void dtn::core::EventSwitch::unregisterEventReceiver | ( | string | eventName, |
EventReceiver * | receiver | ||
) | [static, protected] |
Definition at line 165 of file EventSwitch.cpp.
References getInstance().
Referenced by dtn::core::EventReceiver::unbindEvent().
friend class Event [friend] |
Definition at line 108 of file EventSwitch.h.
friend class EventReceiver [friend] |
Definition at line 109 of file EventSwitch.h.
friend class Worker [friend] |
Definition at line 120 of file EventSwitch.h.
Referenced by loop().