OSInitMessageQueue

Syntax

#include <revolution/os.h>

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

Arguments

mq Pointer to message queue.
msgArray Pointer to 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 argument is a pointer to the array that maintains messages for this queue, and the msgCount argument is the number of messages that can be maintained in the queue (in other words, the array size).

See Also

Thread Functions, Thread Synchronization Functions, OSJamMessage, OSReceiveMessage, OSSendMessage

Revision History

2006/03/01 Initial version.


CONFIDENTIAL