OS_InitMessageQueue


C Specification

#include <nitro/os.h>

void OS_InitMessageQueue(
     OSMessageQueue*   mq,
     OSMessage*        msgArray,
     s32               msgCount );

Description

This function initializes the mq message queue structure. The msgArray argument points to the array maintaining the queue messages, and msgCount is the number of messages maintained in the queue (i.e., the array size).

Arguments

mq Pointer to the message queue
msgArray Pointer to the array maintaining the messages
msgCount Number of messages maintained in the array

Return Values

None

See Also

OS_JamMessage, OS_SendMessage, OS_ReceiveMessage, OS_ReadMessage()

Revision History

03/12/2004 Added OS_ReadMessage to See Also
12/05/2003 Initial Version