OS_InitMessageQueue

Syntax

#include <nitro/os.h>
void OS_InitMessageQueue(
     OSMessageQueue*   mq,
     OSMessage*        msgArray,
     s32               msgCount);
  

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.

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).

See Also

OS_JamMessage, OS_SendMessage, OS_ReceiveMessage, OS_ReadMessage()

Revision History

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


CONFIDENTIAL