[Home] [Prev] [Next] [Up]
XGBroadcast class
Receives broadcast messages.
Usage:
#include <XEvent.h>
class XGBroadcast;
Description
This class receives messages that are globally broadcasted systemwide. Those include status messages and periodic messages.
Construction/Destruction
XGBroadcast::XGBroadcast(void)
Register me with the global linked list of broadcasters receiving messages.
XGBroadcast::~XGBroadcast(void)
Remove me from the global linked list of broadcasters
Message Dispatch
static void XGBroadcast::SendBroadcast(long msg, long arg, void *parg)
This broadcasts immediately the specified message to all registered broadcast receiver objects.
static void XGBroadcast::PostBroadcast(long msg, long arg, void *parg)
This stores the specified message, and broadcasts it later. This can be used to avoid deadlocks and for threads to post notification messages.
Message reception
void XGBroadcast::ReceiveBroadcast(long msg, long arg, void *parg)
Override this method to receive broadcast messages. If the message is not handled, this can simply do nothing.