ACE_Message_Queue_Base Class ReferenceBase class for ACE_Message_Queue, which is the central queueing facility for messages in the ACE framework. More...
Inheritance diagram for ACE_Message_Queue_Base:
Detailed DescriptionBase class for ACE_Message_Queue, which is the central queueing facility for messages in the ACE framework.For all the ACE_Time_Value pointer parameters the caller will block until action is possible if timeout == 0. Otherwise, it will wait until the absolute time specified in *timeout elapses. A queue is always in one of three states: . ACTIVATED . DEACTIVATED . PULSED Member Enumeration Documentation
Constructor & Destructor Documentation
Close down the message queue and release all resources.
Member Function Documentation
Close down the message queue and release all resources.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Retrieve the first ACE_Message_Block without removing it. Note that timeout uses <{absolute}> time rather than <{relative}> time. If the timeout elapses without receiving a message -1 is returned and Implemented in ACE_Message_Queue<>, ACE_Dynamic_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Enqueue a <ACE_Message_Block *> into the tail of the queue. Returns number of items in queue if the call succeeds or -1 otherwise. These calls return -1 when queue is closed, deactivated (in which case Implemented in ACE_Message_Queue<>, ACE_Dynamic_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Dequeue and return the <ACE_Message_Block *> at the head of the queue. Returns number of items in queue if the call succeeds or -1 otherwise. These calls return -1 when queue is closed, deactivated (in which case Implemented in ACE_Message_Queue<>, ACE_Dynamic_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
True if queue is full, else false.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
True if queue is empty, else false.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Number of total bytes on the queue, i.e., sum of the message block sizes. Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Number of total length on the queue, i.e., sum of the message block lengths. Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Number of total messages on the queue.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
New value of the number of total bytes on the queue, i.e., sum of the message block sizes. Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
New value of the number of total length on the queue, i.e., sum of the message block lengths. Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Deactivate the queue and wake up all threads waiting on the queue so they can continue. No messages are removed from the queue, however. Any other operations called until the queue is activated again will immediately return -1 with
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Reactivate the queue so that threads can enqueue and dequeue messages again.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Pulse the queue to wake up any waiting threads. Changes the queue state to PULSED; future enqueue/dequeue operations proceed as in ACTIVATED state.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Returns the current state of the queue.
Reimplemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Returns 1 if the state of the queue is DEACTIVATED, and 0 if the queue's state is ACTIVATED or PULSED. Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Get the notification strategy for the <Message_Queue>.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Set the notification strategy for the <Message_Queue>.
Implemented in ACE_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Dump the state of an object.
Implemented in ACE_Message_Queue<>, ACE_Dynamic_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Member Data DocumentationDeclare the dynamic allocation hooks.
Reimplemented in ACE_Message_Queue<>, ACE_Dynamic_Message_Queue<>, ACE_Message_Queue< ACE_SYNCH >, and ACE_Message_Queue< ACE_SYNCH_USE >.
Indicates the state of the queue, which can be <ACTIVATED>, <DEACTIVATED>, or <PULSED>.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:15:45 2008 for ACE by 1.5.5 |