summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-05-01 16:10:10 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-05-01 16:10:10 +0000
commitb15447892cff3e1926a4908d3acee0d2f9e64f74 (patch)
treebacb3de1b9984ac50fc8a8f4bc57bf19906ef2aa /ace
parent464690d5463d6d7dc5df5ffad56b226962b90d00 (diff)
downloadATCD-b15447892cff3e1926a4908d3acee0d2f9e64f74.tar.gz
ChangeLogTag:Tue May 1 09:57:30 2001 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/Activation_Queue.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/ace/Activation_Queue.cpp b/ace/Activation_Queue.cpp
index 491b4d57ad5..4d8f5d395d5 100644
--- a/ace/Activation_Queue.cpp
+++ b/ace/Activation_Queue.cpp
@@ -55,28 +55,31 @@ ACE_Activation_Queue::dequeue (ACE_Time_Value *tv)
if (this->queue_->dequeue_head (mb, tv) != -1)
{
// Get the next <Method_Request>.
- ACE_Method_Request *mo =
+ ACE_Method_Request *mr =
ACE_reinterpret_cast (ACE_Method_Request *,
mb->base ());
// Delete the message block.
mb->release ();
- return mo;
+ return mr;
}
else
return 0;
}
int
-ACE_Activation_Queue::enqueue (ACE_Method_Request *mo,
+ACE_Activation_Queue::enqueue (ACE_Method_Request *mr,
ACE_Time_Value *tv)
{
ACE_Message_Block *mb;
+ // We pass sizeof (*mr) here so that flow control will work
+ // correctly. Since we also pass <mr> note that no unnecessary
+ // memory is actually allocated -- just the size field is set.
ACE_NEW_RETURN (mb,
- ACE_Message_Block ((char *) mo,
- sizeof (*mo),
- mo->priority ()),
+ ACE_Message_Block ((char *) mr,
+ sizeof (*mr),
+ mr->priority ()),
-1);
// Enqueue in priority order.