MessageServer Class Reference
[Kernel Module]

#include <messageserver.h>

Inheritance diagram for MessageServer:

RootServer< MessageServer > Root Server< MessageServer > Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

Detailed Description

Delivers messages to receivers.

Public Member Functions

 MessageServer (const char *id)
virtual ~MessageServer ()
bool Run ()
void Stop ()
void SendMessage (BaseMessage *message, Root *sender, Root *destination, double delay=0.0)
void CancelMessage (BaseMessage *message)

Static Private Member Functions

static void OnProcess (void *data)

Private Attributes

bool running
List< BaseMessagequeue
 Queue of messages to deliver immediately.
Ref< TimeServertime_server

Constructor & Destructor Documentation

MessageServer::MessageServer ( const char *  id  ) 

MessageServer::~MessageServer (  )  [virtual]

Member Function Documentation

bool MessageServer::Run (  ) 

void MessageServer::Stop (  ) 

void MessageServer::SendMessage ( BaseMessage message,
Root sender,
Root destination,
double  delay = 0.0 

void MessageServer::CancelMessage ( BaseMessage message  ) 

void MessageServer::OnProcess ( void *  data  )  [static, private]

Member Data Documentation

bool MessageServer::running [private]

List<BaseMessage> MessageServer::queue [private]

Queue of messages to deliver immediately.

Ref<TimeServer> MessageServer::time_server [private]

Thread* MessageServer::thread [private]

Semaphore* MessageServer::semaphore [private]

The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3