The create method creates
an RiCOSMessageQueue object.
SignatureRiCOSMessageQueue * RiCOSMessageQueue_create(
RiCBoolean shouldGrow, int initSize);
ParametersshouldGrow
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.
ReturnsThe
newly created RiCOSMessageQueue
ExampleRiCOSMessageQueue * RiCOSMessageQueue_create(
RiCBoolean shouldGrow, int initSize)
{
RiCOSMessageQueue * me = malloc(
sizeof(RiCOSMessageQueue));
RiCOSMessageQueue_init(me, shouldGrow, initSize);
return me;
}