summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2004-09-01 17:13:56 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2004-09-01 17:13:56 +0000
commit66b6391b265057fa4bc7d9d16e717cd1b63f50e9 (patch)
treee4a016b41fd94cf6225dda1ce6c4fd57f2b59744
parent7ffed51c2ad9c0485ea316763f33a17cf1556225 (diff)
downloadATCD-66b6391b265057fa4bc7d9d16e717cd1b63f50e9.tar.gz
ChangeLogTag:Wed Sep 1 10:01:57 2004 J.T. Conklin <jtc@acorntoolworks.com>
-rw-r--r--ChangeLog30
-rw-r--r--ace/Message_Queue_T.inl2
-rw-r--r--tests/Message_Queue_Notifications_Test.cpp3
3 files changed, 15 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index f38ee7df0c6..673420be23c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,17 @@ Wed Sep 1 12:45:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Wed Sep 1 07:43:46 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+ * tests/Message_Queue_Notifications_Test.cpp (producer): Fixed
+ this test so it works with the changes to
+ ACE_Message_Queue::is_full_i() below. Thanks to Rick Robinson
+ for this fix, as well.
+
+ * ace/Message_Queue_T.inl: Changed the implementation of
+ is_full_i() so the comparision operator is >= rather than >,
+ which makes it possible to use a 0 high water mark to disable
+ the enqueue side of the queue. Thanks to Rick Robinson
+ <rick@oyarsa.com> for reporting this.
+
* ace/POSIX_Proactor.h: Updated the documentation to use
the right names for ACE_POSIX_SIG_Proactor and
ACE_POSIX_AIOCB_Proactor. Thanks to John D. Robertson
@@ -211,17 +222,6 @@ Mon Aug 30 18:31:28 2004 J.T. Conklin <jtc@acorntoolworks.com>
Removed checks for ACE_HAS_SYS_IOCTL_H.
-Mon Aug 30 15:55:10 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Message_Queue_T.inl (is_full_i): Reverted the change
-
- Sat Aug 28 11:15:02 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- since it seemed to break some regression tests. If Rick
- Robinson can figure out how to fix things so the tests don't
- break we'll try again later. Thanks to Chris Cleeland for
- reporting this.
-
Mon Aug 30 17:38:22 2004 Steve Huston <shuston@riverace.com>
Changes that get PocketPC/WinCE back into a state where they build.
@@ -325,14 +325,6 @@ Sun Aug 29 16:53:00 UTC 2004 Martin Corino <mcorino@remedy.nl>
Added '__GLIBC_MINOR__ < 2' test for setting ACE_POLL_IS_BROKEN
on Alpha platform.
-Sat Aug 28 11:15:02 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Message_Queue_T.inl: Changed the implementation of
- is_full_i() so the comparision operator is >= rather than >,
- which makes it possible to use a 0 high water mark to disable
- the enqueue side of the queue. Thanks to Rick Robinson
- <rick@oyarsa.com> for reporting this.
-
Fri Aug 27 11:40:37 2004 J.T. Conklin <jtc@acorntoolworks.com>
* bin/MakeProjectCreator/ftrtevent.mpb:
diff --git a/ace/Message_Queue_T.inl b/ace/Message_Queue_T.inl
index 3cd1e3cd719..dc3c06f7ede 100644
--- a/ace/Message_Queue_T.inl
+++ b/ace/Message_Queue_T.inl
@@ -40,7 +40,7 @@ template <ACE_SYNCH_DECL> ACE_INLINE int
ACE_Message_Queue<ACE_SYNCH_USE>::is_full_i (void)
{
ACE_TRACE ("ACE_Message_Queue<ACE_SYNCH_USE>::is_full_i");
- return this->cur_bytes_ > this->high_water_mark_;
+ return this->cur_bytes_ >= this->high_water_mark_;
}
// Check if queue is empty (holds locks).
diff --git a/tests/Message_Queue_Notifications_Test.cpp b/tests/Message_Queue_Notifications_Test.cpp
index 66f7ef98d32..ed78cfcc93e 100644
--- a/tests/Message_Queue_Notifications_Test.cpp
+++ b/tests/Message_Queue_Notifications_Test.cpp
@@ -218,6 +218,9 @@ Watermark_Test::producer (void)
this->put_message ();
this->print_producer_debug_message ();
i--;
+ if (this->msg_queue ()->is_full ())
+ break;
+
}
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) Producer: High water mark hit ---- \n")));