diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-01-11 03:52:18 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-01-11 03:52:18 +0000 |
commit | 90e0291b4a1082effe4ee1c5a658fb16437e6c2a (patch) | |
tree | 10cedab7b836853e8ce59f4b00f76a7ef737cc14 /tests/Message_Queue_Test.cpp | |
parent | 62093aa0dac652bf464c5a819bde94ef73023855 (diff) | |
download | ATCD-90e0291b4a1082effe4ee1c5a658fb16437e6c2a.tar.gz |
(iterator_test): added comment explaining why a message queue size of 32 Kb is used
Diffstat (limited to 'tests/Message_Queue_Test.cpp')
-rw-r--r-- | tests/Message_Queue_Test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp index 0096f0ed01d..04a6e84efd3 100644 --- a/tests/Message_Queue_Test.cpp +++ b/tests/Message_Queue_Test.cpp @@ -69,7 +69,7 @@ struct Queue_Wrapper // Pointer to messages blocks for sender to send to reciever. Queue_Wrapper (void) - : q_ (0), send_block_ (0) + : q_ (0), send_block_ (0) { } // Default constructor. @@ -83,8 +83,9 @@ iterator_test (void) { const int ITERATIONS = 5; ASYS_TCHAR buffer[ITERATIONS][BUFSIZ]; - // @@ David, can you please replace these magic #'s with constants - // or explain what 32 * 1024 means? + // Use queue size from of 32 Kb, instead of the default of 16 Kb + // (defined by ACE_Message_Queue_Base::DEFAULT_HWM), so that the + // test runs on machines with 8Kb pagesizes. QUEUE queue (32 * 1024); int i; |