#include <lib/sconfig.h>
#include <lib/tl/linkedlist.h>
#include <lib/threads/mutex.h>
#include <lib/threads/atomic.h>
#include <lib/message/handler.h>
Include dependency graph for manager.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | MessageManager |
Gets all messages and distributes them to the handlers. More... | |
Defines | |
#define | _LIB_MESSAGE_MANAGER_H_ 1 |
In order to use the message routines, you must first initialize the message handling system using MessageManager::init(), normally from the main thread.
Next, any thread can go writing messages by calling MessageManager::PostMessage() which will then deliver the message to all the registered message handlers. No own threads for message handling are used; if a separate GUI thread should be used, then passing the data would be the task of the message handler.
In order to have messages displayed to the user, at least one message handler should register at the manager. Message handlers can decide which messages they want to receive; see SelectMessageTypes().
Definition in file manager.h.
|
|