MSGQ_put
2-258
❏
If MSGQ_put does not return SYS_OK, the message is still owned by
the caller and must either be freed or re-used.
Example
/* Send the message back. */
status = MSGQ_put(replyMsgQueue, (MSGQ_Msg)msg);
if (status != SYS_OK) {
/* Need to free the message */
MSGQ_free((MSGQ_Msg)msg);
SYS_abort("Failed to send the message");
}
See Also
MSGQ_get
MSGQ_open
MSGQ_setMsgId
MSGQ_getMsgId
MSGQ_setSrcQueue
MSGQ_getSrcQueue