create

The create method creates an RiCOSMessageQueue object.

Signature
RiCOSMessageQueue * RiCOSMessageQueue_create(
   RiCBoolean shouldGrow, int initSize);
Parameters
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.

Returns

The newly created RiCOSMessageQueue

Example
RiCOSMessageQueue * RiCOSMessageQueue_create(
   RiCBoolean shouldGrow, int initSize)
{
   RiCOSMessageQueue * me = malloc(
      sizeof(RiCOSMessageQueue));
   RiCOSMessageQueue_init(me, shouldGrow, initSize);
   return me;
}

Feedback