diff options
-rw-r--r-- | ace/Message_Queue.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ace/Message_Queue.h b/ace/Message_Queue.h index 2a814b2fbb0..150798a1363 100644 --- a/ace/Message_Queue.h +++ b/ace/Message_Queue.h @@ -181,18 +181,19 @@ public: protected: // = Routines that actually do the enqueueing and dequeueing. // These routines assume that locks are held by the corresponding - // public methods. + // public methods. Since they are virtual, you can change the + // queueing mechanism by subclassing from <ACE_Message_Queue>. - int enqueue_i (ACE_Message_Block *new_item); + virtual int enqueue_i (ACE_Message_Block *new_item); // Enqueue an <ACE_Message_Block *> in accordance with its priority. - int enqueue_tail_i (ACE_Message_Block *new_item); + virtual int enqueue_tail_i (ACE_Message_Block *new_item); // Enqueue an <ACE_Message_Block *> at the end of the queue. - int enqueue_head_i (ACE_Message_Block *new_item); + virtual int enqueue_head_i (ACE_Message_Block *new_item); // Enqueue an <ACE_Message_Block *> at the head of the queue. - int dequeue_head_i (ACE_Message_Block *&first_item); + virtual int dequeue_head_i (ACE_Message_Block *&first_item); // Dequeue and return the <ACE_Message_Block *> at the head of the // queue. |