diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-29 20:16:20 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-29 20:16:20 +0000 |
commit | 755722faeab9bf808b77d4136733c2cdba48b6d9 (patch) | |
tree | 645b9e4571b119118f22d4c3848f9a8fd89495f4 /ace/Message_Queue.cpp | |
parent | 930d89b977a75bd777f01e601de710571370df37 (diff) | |
download | ATCD-755722faeab9bf808b77d4136733c2cdba48b6d9.tar.gz |
(ACE_Message_Queue_Vx:enqueue_head/tail): implement these for VxWorks. enqueue_head_i just calls enqueue_tail_i
Diffstat (limited to 'ace/Message_Queue.cpp')
-rw-r--r-- | ace/Message_Queue.cpp | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/ace/Message_Queue.cpp b/ace/Message_Queue.cpp index 6f1c2e53c3c..cde436379c7 100644 --- a/ace/Message_Queue.cpp +++ b/ace/Message_Queue.cpp @@ -151,14 +151,6 @@ int ACE_Message_Queue_Vx::enqueue_tail_i (ACE_Message_Block *new_item) { ACE_TRACE ("ACE_Message_Queue_Vx::enqueue_tail_i"); - // No-op. This should _never_ be called. - ACE_NOTSUP_RETURN (-1); -} - -int -ACE_Message_Queue_Vx::enqueue_head_i (ACE_Message_Block *new_item) -{ - ACE_TRACE ("ACE_Message_Queue_Vx::enqueue_head_i"); if (new_item == 0) return -1; @@ -180,6 +172,15 @@ ACE_Message_Queue_Vx::enqueue_head_i (ACE_Message_Block *new_item) } int +ACE_Message_Queue_Vx::enqueue_head_i (ACE_Message_Block *new_item) +{ + ACE_TRACE ("ACE_Message_Queue_Vx::enqueue_head_i"); + + // Just delegate to enqueue_tail_i. + return enqueue_tail_i (new_item); +} + +int ACE_Message_Queue_Vx::enqueue_i (ACE_Message_Block *new_item) { ACE_TRACE ("ACE_Message_Queue_Vx::enqueue_i"); @@ -238,18 +239,6 @@ ACE_Message_Queue_Vx::wait_not_empty_cond (ACE_Guard<ACE_Null_Mutex> &mon, #if ! defined (ACE_REQUIRES_FUNC_DEFINITIONS) int -ACE_Message_Queue_Vx::enqueue_tail (ACE_Message_Block *mb, ACE_Time_Value *tv) -{ - ACE_NOTSUP_RETURN (-1); -} - -int -ACE_Message_Queue_Vx::enqueue_head (ACE_Message_Block *mb, ACE_Time_Value *tv) -{ - ACE_NOTSUP_RETURN (-1); -} - -int ACE_Message_Queue_Vx::peek_dequeue_head (ACE_Message_Block *&, ACE_Time_Value *tv) { |