Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Namespace List
- Namespace Members

Classes
Dispatcher Namespace Reference
Message System

Namespace for the message dispatcher functions. More...

## Classes
struct | _DispatchData
| Internal class used by the dispatcher.
class | IMessageListener
| Listener interface for objects that receive messages. More...
struct | MessageQueue
| Internal class for tracking message queues. More...

## Functions
Message Queue Management
bool | isQueueRegistered (const char *name)
| Check if a message queue is registered. More...
void | registerMessageQueue (const char *name)
| Register a message queue. More...
void | unregisterMessageQueue (const char *name)
| Unregister a message queue. More...
bool | registerMessageListener (const char *queue, IMessageListener *listener)
| Register a listener with a queue to receive messages. More...
void | unregisterMessageListener (const char *queue, IMessageListener *listener)
| Unregister a listener with a queue. More...
Message Dispatcher
bool | dispatchMessage (const char *queue, const char *msg, const char *data)
| Dispatch a message to a queue. More...
bool | dispatchMessageObject (const char *queue, Message *msg)
| Dispatch a message object to a queue. More...
Internal Functions
MessageQueue * | getMessageQueue (const char *name)
| Internal function: obtain message queue. Dispatcher mutex must be locked. More...
bool | lockDispatcherMutex ()
| Internal function: Lock the dispatcher mutex. More...
void | unlockDispatcherMutex ()
| Internal function: Unlock the dispatcher mutex. More...

## Detailed Description

Namespace for the message dispatcher functions.