From d8e821571d63e5f89b8ba22d5fac1416c3cff089 Mon Sep 17 00:00:00 2001 From: schmidt Date: Tue, 1 May 2001 16:10:10 +0000 Subject: ChangeLogTag:Tue May 1 09:57:30 2001 Douglas C. Schmidt --- ChangeLog | 6 ++++++ ChangeLogs/ChangeLog-02a | 6 ++++++ ChangeLogs/ChangeLog-03a | 6 ++++++ THANKS | 1 + ace/Activation_Queue.cpp | 15 +++++++++------ 5 files changed, 28 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0363a7cfa7c..5919815409f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue May 1 09:57:30 2001 Douglas C. Schmidt + + * ace/Activation_Queue.cpp (enqueue): Clarified the behavior + of passing sizeof (*mr). Thanks to Guy Bolton King + + Tue May 1 07:13:59 2001 Balachandran Natarajan * bin/auto_run_tests.lst : Sun CC 5.1 cannot work with diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 0363a7cfa7c..5919815409f 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Tue May 1 09:57:30 2001 Douglas C. Schmidt + + * ace/Activation_Queue.cpp (enqueue): Clarified the behavior + of passing sizeof (*mr). Thanks to Guy Bolton King + + Tue May 1 07:13:59 2001 Balachandran Natarajan * bin/auto_run_tests.lst : Sun CC 5.1 cannot work with diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 0363a7cfa7c..5919815409f 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,9 @@ +Tue May 1 09:57:30 2001 Douglas C. Schmidt + + * ace/Activation_Queue.cpp (enqueue): Clarified the behavior + of passing sizeof (*mr). Thanks to Guy Bolton King + + Tue May 1 07:13:59 2001 Balachandran Natarajan * bin/auto_run_tests.lst : Sun CC 5.1 cannot work with diff --git a/THANKS b/THANKS index 4c1394ddb83..33aba1a4f5f 100644 --- a/THANKS +++ b/THANKS @@ -1223,6 +1223,7 @@ Dayisi Peter Georgakakis Richard Hardgrave Mark Drijver +Guy Bolton King I would particularly like to thank Paul Stephenson, who worked with me at Ericsson in the early 1990's. Paul devised the recursive Makefile 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 . - 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 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. -- cgit v1.2.1