| << Prev | appCORE Programming Guide | Next >> |
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 Value | Condition | |
| EINVAL | Input message is null. | |
| ENOMEM | Unable to allocate memory for duplicate message. |
MULTI-THREAD SAFETY LEVEL
MT-safe.
SEE ALSO
| << Prev | appCORE Programming Guide | Next >> |