OSInitMessageQueue

Syntax

#include <cafe/os.h>

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

Parameters

mq Pointer to message queue.
msgArray Pointer to the array that will hold the messages.
msgCount The number of messages that the array can hold.

Return Values

None.

Description

Initializes the message queue structure mq. The msgArray parameter is a pointer to the array that holds queue messages, and msgCount is the number of messages that the queue can hold (i.e., the array size).

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

OSReceiveMessage
OSSendMessage

Revision History

2013-05-08 Automated cleanup pass.
2012-08-01 Cleanup pass.
2010-08-30 Initial version.


CONFIDENTIAL