The create method creates an RiCOSMessageQueue object.
RiCOSMessageQueue * RiCOSMessageQueue_create(
RiCBoolean shouldGrow, int initSize);
shouldGrow
Determines whether the queue can be a fixed size (RiCFALSE) or able to expand as needed (RiCTRUE).
initSize
Specifies the initial size of the queue. The default message queue size is set by the variable RiCOSDefaultMessageQueueSize.
The maximum length of the message queue is operating system- and implementation-dependent. It is usually set in the adapter for a particular operating system.
The newly created RiCOSMessageQueue
RiCOSMessageQueue * RiCOSMessageQueue_create(
RiCBoolean shouldGrow, int initSize)
{
RiCOSMessageQueue * me = malloc(
sizeof(RiCOSMessageQueue));
RiCOSMessageQueue_init(me, shouldGrow, initSize);
return me;
}