summaryrefslogtreecommitdiff
path: root/TAO/tao/Synch_Queued_Message.cpp
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-10-03 11:34:20 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-10-03 11:34:20 +0000
commitb3868151be3d8bd6acdf6a909217a2827320a7f8 (patch)
treea57de040c70ec715b1005a5db1c163baa48ba470 /TAO/tao/Synch_Queued_Message.cpp
parenta155e1d1520902a8476a480c561c1dcdd66322af (diff)
downloadATCD-b3868151be3d8bd6acdf6a909217a2827320a7f8.tar.gz
ChangeLogTag:Mon Oct 3 06:33:20 2005 Bala Natarajan <bala_natarajan at symantec dot com>
Diffstat (limited to 'TAO/tao/Synch_Queued_Message.cpp')
-rw-r--r--TAO/tao/Synch_Queued_Message.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/TAO/tao/Synch_Queued_Message.cpp b/TAO/tao/Synch_Queued_Message.cpp
index b024fffc314..58cbf2afb3e 100644
--- a/TAO/tao/Synch_Queued_Message.cpp
+++ b/TAO/tao/Synch_Queued_Message.cpp
@@ -2,6 +2,7 @@
#include "Synch_Queued_Message.h"
#include "debug.h"
+#include "ORB_Core.h"
#include "ace/Malloc_T.h"
#include "ace/Message_Block.h"
@@ -12,9 +13,10 @@ ACE_RCSID (tao,
TAO_Synch_Queued_Message::
TAO_Synch_Queued_Message (const ACE_Message_Block *contents,
+ TAO_ORB_Core *oc,
ACE_Allocator *alloc,
int is_heap_allocated)
- : TAO_Queued_Message (alloc, is_heap_allocated)
+ : TAO_Queued_Message (oc, alloc, is_heap_allocated)
, contents_ (const_cast<ACE_Message_Block*> (contents))
, current_block_ (contents_)
{
@@ -102,9 +104,8 @@ TAO_Synch_Queued_Message::bytes_transferred (size_t &byte_count)
}
if (this->current_block_ == 0)
- {
- this->state_changed (TAO_LF_Event::LFS_SUCCESS);
- }
+ this->state_changed (TAO_LF_Event::LFS_SUCCESS,
+ this->orb_core_->leader_follower ());
}
TAO_Queued_Message *
@@ -125,6 +126,7 @@ TAO_Synch_Queued_Message::clone (ACE_Allocator *alloc)
static_cast<TAO_Synch_Queued_Message *> (
alloc->malloc (sizeof (TAO_Synch_Queued_Message))),
TAO_Synch_Queued_Message (mb,
+ this->orb_core_,
alloc),
0);
}
@@ -140,7 +142,7 @@ TAO_Synch_Queued_Message::clone (ACE_Allocator *alloc)
}
ACE_NEW_RETURN (qm,
- TAO_Synch_Queued_Message (mb),
+ TAO_Synch_Queued_Message (mb, this->orb_core_),
0);
}