RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Event::Manager Class Reference

#include <event.h>

Public Member Functions

void postEvent (const Object *event)
 
void postEventRT (const Object *event)
 

Static Public Member Functions

static ManagergetInstance (void)
 

Private Member Functions

 Manager (void)
 
 ~Manager (void)
 
 Manager (const Manager &)
 
Manageroperator= (const Manager &)
 
void registerHandler (Handler *)
 
void unregisterHandler (Handler *)
 
void registerRTHandler (RTHandler *)
 
void unregisterRTHandler (RTHandler *)
 

Private Attributes

Mutex mutex
 
std::list< Handler * > handlerList
 
RT::List< RTHandlerrthandlerList
 

Static Private Attributes

static Managerinstance = 0
 

Friends

class Handler
 
class RTHandler
 

Detailed Description

Definition at line 165 of file event.h.

Constructor & Destructor Documentation

Event::Manager::Manager(void )
private

Definition at line 106 of file event.cpp.

Event::Manager::~Manager(void )
private

Definition at line 108 of file event.cpp.

Event::Manager::Manager(const Manager)
inlineprivate

Definition at line 210 of file event.h.

Member Function Documentation

Event::Manager * Event::Manager::getInstance(void )
static

Manager is a Singleton, which means that there can only be one instance. This function returns a pointer to that single instance.

Returns
The instance of Manager.

Definition at line 149 of file event.cpp.

Manager& Event::Manager::operator=(const Manager)
inlineprivate

Definition at line 211 of file event.h.

void Event::Manager::postEvent(const Objectevent)

Function for posting an event to be signaled. This function should only be called from non-realtime, and blocks until it is been dispatched to all handlers.

Parameters
eventThe event to be posted.
See also
Event::Handler
Event::Object

Definition at line 110 of file event.cpp.

void Event::Manager::postEventRT(const Objectevent)

Function for posting an event to be signaled. This function should only be called from realtime, and blocks until it is been dispatched to all handlers.

Parameters
eventThe event to be posted.
See also
Event::RTHandler
Event::Object

Definition at line 118 of file event.cpp.

void Event::Manager::registerHandler(Handlerhandler)
private

Definition at line 124 of file event.cpp.

void Event::Manager::registerRTHandler(RTHandlerhandler)
private

Definition at line 136 of file event.cpp.

void Event::Manager::unregisterHandler(Handlerhandler)
private

Definition at line 130 of file event.cpp.

void Event::Manager::unregisterRTHandler(RTHandlerhandler)
private

Definition at line 141 of file event.cpp.

Friends And Related Function Documentation

friend class Handler
friend

Definition at line 168 of file event.h.

friend class RTHandler
friend

Definition at line 169 of file event.h.

Member Data Documentation

std::list<Handler *> Event::Manager::handlerList
private

Definition at line 225 of file event.h.

Event::Manager * Event::Manager::instance = 0
staticprivate

Definition at line 214 of file event.h.

Mutex Event::Manager::mutex
private

Definition at line 224 of file event.h.

RT::List<RTHandler> Event::Manager::rthandlerList
private

Definition at line 226 of file event.h.


The documentation for this class was generated from the following files: