Serial Framework C++ Edition
Public Member Functions | Static Public Member Functions | List of all members
CwclMessageBroadcaster Class Reference

The message broadcaster manages broadcast messages between subscribers (message receivers subscribed for broadcast messages). Also the message broadcaster monitors changes in the hardware configuration and notifies subscribers about the changes. More...

#include <wclMessaging.h>

Public Member Functions

 CwclMessageBroadcaster ()
 Creates message broadcaster.
 
virtual ~CwclMessageBroadcaster ()
 Frees the message broadcaster.
 

Static Public Member Functions

static int Broadcast (CwclMessage *const Message)
 Broadcasts a Message to all message receivers.
 
static int ProcessMessages ()
 Force WCL message processing for current thread.
 
static int Wait (const unsigned long Count, const HANDLE *Events, const unsigned long Timeout, unsigned long &Index)
 Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.
 
static int Wait (const unsigned long Count, const HANDLE *Events, unsigned long &Index)
 Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.
 
static int Wait (HANDLE Event, unsigned long Timeout)
 Waits until the specified event is in the signaled state or the time-out interval elapses.
 
static int Wait (const HANDLE Event)
 Waits until the specified event is in the signaled state.
 
static wclMessageSynchronizationKind GetSyncMethod ()
 Gets the current inter-threading synchronization method.
 
static int SetSyncMethod (const wclMessageSynchronizationKind Kind)
 Changes the current inter-threading synchronization method.
 

Detailed Description

The message broadcaster manages broadcast messages between subscribers (message receivers subscribed for broadcast messages). Also the message broadcaster monitors changes in the hardware configuration and notifies subscribers about the changes.