An important building block for the execution framework class OMThread, the message queue is initially empty. The factory's createOMOSMessageQueue method creates an operating system message queue.
The default message queue size is set by the static constant variable OMOSThread::DefaultMessageQueueSize. You can override the default value by passing a different value as the second argument to the factory's createOMOSMessageQueue method when you create the message queue.
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.