OMOSMessageQueue class

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.

Construction summary
~OMOSMessageQueue
Destroys the OMOSMessageQueue object
Method summary
get
Retrieves the message at the beginning of the queue
getMessageList
Retrieves the list of messages
getOsHandle
Returns the native operating system handle to the thread
isEmpty
Determines whether the queue is empty
isFull
Determines whether the queue is full
pend
Blocks the thread making the call until there is a message in the queue
put
Adds a message to the queue
setOwnerProcess
Sets the thread that owns the message queue

Feedback