NAME

coreMsgBroadcast() -- send a message to all threads.


SYNOPSIS

include "appcore.h"

int coreMsgBroadcast( coreMsg_t* m )

DESCRIPTION

The coreMsgBroadbast() function is used to send a message to all threads. The message is duplicated and dispatched to each thread.


PARAMETERS

m
	pointer to a message.

RETURN VALUE

If successful, coreMsgBroadcast() returns 0. If an error occurs, -1 is returned and errno is set to one of the following:

errno ValueCondition
EINVALInput message is null.
ENOMEMUnable to allocate memory for duplicate message.

MULTI-THREAD SAFETY LEVEL

MT-safe.


SEE ALSO

Functions:
coreMsgCreate() coreMsgDup() coreMsgFree() coreMsgFlagSet() coreMsgFlagIsSet() coreMsgFlagClr()