summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-17 15:40:49 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-17 15:40:49 +0000
commit9bc2646e640fcd1e12989be1727ddddb86e5e1bc (patch)
treee2e1d9e095b8b1de8c8682b90d0fa0c29c50bd74
parent36dae598860856f9bbdd9d4409e03c91e8a62d75 (diff)
downloadATCD-9bc2646e640fcd1e12989be1727ddddb86e5e1bc.tar.gz
ChangeLogTag: Thu Feb 17 09:38:06 2000 David L. Levine <levine@cs.wustl.edu>
-rw-r--r--ChangeLog42
-rw-r--r--ChangeLogs/ChangeLog-02a42
-rw-r--r--ChangeLogs/ChangeLog-03a42
-rw-r--r--tests/Reader_Writer_Test.cpp18
4 files changed, 87 insertions, 57 deletions
diff --git a/ChangeLog b/ChangeLog
index e8086cad634..38d2b3b859e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,16 @@
+Thu Feb 17 09:38:06 2000 David L. Levine <levine@cs.wustl.edu>
+
+ * tests/Reader_Writer_Test.cpp: use default n_iterations
+ of 25 and n_loops of 10 on VxWorks. With the old defaults,
+ the test took too long, e.g., 7 minutes on a 450 MHz
+ Pentium. With the new defaults, it takes about 20 seconds.
+ Thanks to Dave Hall <David.Hall@grc.nasa.gov> for reporting this.
+
Thu Feb 17 08:10:08 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
- * ace/Service_Config.cpp (close_singletons): Don't bother calling
- ACE_Proactor::close_singleton() on WinCE, Win95/98, or if
- these's no support for AIO calls. Thanks to Sangwoo Jin <swjinjin@sei.co.kr> for reporting this.
+ * ace/Service_Config.cpp (close_singletons): Don't bother calling
+ ACE_Proactor::close_singleton() on WinCE, Win95/98, or if
+ these's no support for AIO calls. Thanks to Sangwoo Jin <swjinjin@sei.co.kr> for reporting this.
Wed Feb 16 17:03:31 2000 Steve Huston <shuston@riverace.com>
@@ -10,23 +18,23 @@ Wed Feb 16 17:03:31 2000 Steve Huston <shuston@riverace.com>
Wed Feb 16 14:53:05 2000 Jeff Parsons <parsons@cs.wustl.edu>
- * ace/OS.h:
- Added ACE_GLOBAL_COLONS macro. In certain cases in IDL files
- where nested scoped names repeat (after skipping a scope so
- it's legal), all comilers except SucCC 5.0 need the fully
- scoped name with the global double colon in order to resolve
- the name. SunCC 5.0, on the other hand, not only doesn't
- need it, but outputs an error whenever it sees these global
- double colons just inside an open paranthesis, for example,
- (::foo::...). This macro is used in generating code in
- just these instances so all comilers can be happy.
+ * ace/OS.h:
+ Added ACE_GLOBAL_COLONS macro. In certain cases in IDL files
+ where nested scoped names repeat (after skipping a scope so
+ it's legal), all comilers except SucCC 5.0 need the fully
+ scoped name with the global double colon in order to resolve
+ the name. SunCC 5.0, on the other hand, not only doesn't
+ need it, but outputs an error whenever it sees these global
+ double colons just inside an open paranthesis, for example,
+ (::foo::...). This macro is used in generating code in
+ just these instances so all comilers can be happy.
Tue Feb 15 22:57:59 2000 Nanbor Wang <nanbor@cs.wustl.edu>
- * ace/MEM_IO.h:
- * ace/MEM_IO.cpp (send): Added a new method that sends a chain of
- Message_Block. This function aggregates the data in
- Message_Block and copies them directly into shared memory.
+ * ace/MEM_IO.h:
+ * ace/MEM_IO.cpp (send): Added a new method that sends a chain of
+ Message_Block. This function aggregates the data in
+ Message_Block and copies them directly into shared memory.
Tue Feb 15 21:26:00 2000 David L. Levine <levine@cs.wustl.edu>
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index e8086cad634..38d2b3b859e 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,8 +1,16 @@
+Thu Feb 17 09:38:06 2000 David L. Levine <levine@cs.wustl.edu>
+
+ * tests/Reader_Writer_Test.cpp: use default n_iterations
+ of 25 and n_loops of 10 on VxWorks. With the old defaults,
+ the test took too long, e.g., 7 minutes on a 450 MHz
+ Pentium. With the new defaults, it takes about 20 seconds.
+ Thanks to Dave Hall <David.Hall@grc.nasa.gov> for reporting this.
+
Thu Feb 17 08:10:08 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
- * ace/Service_Config.cpp (close_singletons): Don't bother calling
- ACE_Proactor::close_singleton() on WinCE, Win95/98, or if
- these's no support for AIO calls. Thanks to Sangwoo Jin <swjinjin@sei.co.kr> for reporting this.
+ * ace/Service_Config.cpp (close_singletons): Don't bother calling
+ ACE_Proactor::close_singleton() on WinCE, Win95/98, or if
+ these's no support for AIO calls. Thanks to Sangwoo Jin <swjinjin@sei.co.kr> for reporting this.
Wed Feb 16 17:03:31 2000 Steve Huston <shuston@riverace.com>
@@ -10,23 +18,23 @@ Wed Feb 16 17:03:31 2000 Steve Huston <shuston@riverace.com>
Wed Feb 16 14:53:05 2000 Jeff Parsons <parsons@cs.wustl.edu>
- * ace/OS.h:
- Added ACE_GLOBAL_COLONS macro. In certain cases in IDL files
- where nested scoped names repeat (after skipping a scope so
- it's legal), all comilers except SucCC 5.0 need the fully
- scoped name with the global double colon in order to resolve
- the name. SunCC 5.0, on the other hand, not only doesn't
- need it, but outputs an error whenever it sees these global
- double colons just inside an open paranthesis, for example,
- (::foo::...). This macro is used in generating code in
- just these instances so all comilers can be happy.
+ * ace/OS.h:
+ Added ACE_GLOBAL_COLONS macro. In certain cases in IDL files
+ where nested scoped names repeat (after skipping a scope so
+ it's legal), all comilers except SucCC 5.0 need the fully
+ scoped name with the global double colon in order to resolve
+ the name. SunCC 5.0, on the other hand, not only doesn't
+ need it, but outputs an error whenever it sees these global
+ double colons just inside an open paranthesis, for example,
+ (::foo::...). This macro is used in generating code in
+ just these instances so all comilers can be happy.
Tue Feb 15 22:57:59 2000 Nanbor Wang <nanbor@cs.wustl.edu>
- * ace/MEM_IO.h:
- * ace/MEM_IO.cpp (send): Added a new method that sends a chain of
- Message_Block. This function aggregates the data in
- Message_Block and copies them directly into shared memory.
+ * ace/MEM_IO.h:
+ * ace/MEM_IO.cpp (send): Added a new method that sends a chain of
+ Message_Block. This function aggregates the data in
+ Message_Block and copies them directly into shared memory.
Tue Feb 15 21:26:00 2000 David L. Levine <levine@cs.wustl.edu>
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index e8086cad634..38d2b3b859e 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,8 +1,16 @@
+Thu Feb 17 09:38:06 2000 David L. Levine <levine@cs.wustl.edu>
+
+ * tests/Reader_Writer_Test.cpp: use default n_iterations
+ of 25 and n_loops of 10 on VxWorks. With the old defaults,
+ the test took too long, e.g., 7 minutes on a 450 MHz
+ Pentium. With the new defaults, it takes about 20 seconds.
+ Thanks to Dave Hall <David.Hall@grc.nasa.gov> for reporting this.
+
Thu Feb 17 08:10:08 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
- * ace/Service_Config.cpp (close_singletons): Don't bother calling
- ACE_Proactor::close_singleton() on WinCE, Win95/98, or if
- these's no support for AIO calls. Thanks to Sangwoo Jin <swjinjin@sei.co.kr> for reporting this.
+ * ace/Service_Config.cpp (close_singletons): Don't bother calling
+ ACE_Proactor::close_singleton() on WinCE, Win95/98, or if
+ these's no support for AIO calls. Thanks to Sangwoo Jin <swjinjin@sei.co.kr> for reporting this.
Wed Feb 16 17:03:31 2000 Steve Huston <shuston@riverace.com>
@@ -10,23 +18,23 @@ Wed Feb 16 17:03:31 2000 Steve Huston <shuston@riverace.com>
Wed Feb 16 14:53:05 2000 Jeff Parsons <parsons@cs.wustl.edu>
- * ace/OS.h:
- Added ACE_GLOBAL_COLONS macro. In certain cases in IDL files
- where nested scoped names repeat (after skipping a scope so
- it's legal), all comilers except SucCC 5.0 need the fully
- scoped name with the global double colon in order to resolve
- the name. SunCC 5.0, on the other hand, not only doesn't
- need it, but outputs an error whenever it sees these global
- double colons just inside an open paranthesis, for example,
- (::foo::...). This macro is used in generating code in
- just these instances so all comilers can be happy.
+ * ace/OS.h:
+ Added ACE_GLOBAL_COLONS macro. In certain cases in IDL files
+ where nested scoped names repeat (after skipping a scope so
+ it's legal), all comilers except SucCC 5.0 need the fully
+ scoped name with the global double colon in order to resolve
+ the name. SunCC 5.0, on the other hand, not only doesn't
+ need it, but outputs an error whenever it sees these global
+ double colons just inside an open paranthesis, for example,
+ (::foo::...). This macro is used in generating code in
+ just these instances so all comilers can be happy.
Tue Feb 15 22:57:59 2000 Nanbor Wang <nanbor@cs.wustl.edu>
- * ace/MEM_IO.h:
- * ace/MEM_IO.cpp (send): Added a new method that sends a chain of
- Message_Block. This function aggregates the data in
- Message_Block and copies them directly into shared memory.
+ * ace/MEM_IO.h:
+ * ace/MEM_IO.cpp (send): Added a new method that sends a chain of
+ Message_Block. This function aggregates the data in
+ Message_Block and copies them directly into shared memory.
Tue Feb 15 21:26:00 2000 David L. Levine <levine@cs.wustl.edu>
diff --git a/tests/Reader_Writer_Test.cpp b/tests/Reader_Writer_Test.cpp
index 8004972f6cb..65534952a19 100644
--- a/tests/Reader_Writer_Test.cpp
+++ b/tests/Reader_Writer_Test.cpp
@@ -34,14 +34,20 @@ USELIB("..\ace\aced.lib");
#if defined (ACE_HAS_THREADS)
// Default number of iterations.
-#if defined (ACE_HAS_WINCE)
-static size_t n_iterations = 50;
+#if defined (VXWORKS)
+ // So the test doesn't run for too long . . .
+ static size_t n_iterations = 25;
#else
-static size_t n_iterations = 50;
+ static size_t n_iterations = 50;
#endif /* ACE_HAS_WINCE */
// Default number of loops.
-static size_t n_loops = 100;
+#if defined (VXWORKS)
+ // thr_yield () and/or thr_equal () are expensive on VxWorks, apparently.
+ static size_t n_loops = 10;
+#else
+ static size_t n_loops = 100;
+#endif /* ACE_HAS_WINCE */
// Default number of readers.
static size_t n_readers = 6;
@@ -107,7 +113,7 @@ reader (void *)
for (size_t iterations = 1; iterations <= n_iterations; iterations++)
{
- ACE_OS::sleep(pause);
+ ACE_OS::sleep (pause);
ACE_Read_Guard<ACE_RW_Thread_Mutex> g (rw_mutex);
// int n = ++current_readers;
// ACE_DEBUG ((LM_DEBUG, ASYS_TEXT (" (%t) I'm reader number %d\n"), n));
@@ -192,7 +198,7 @@ writer (void *)
for (size_t iterations = 1; iterations <= n_iterations; iterations++)
{
- ACE_OS::sleep(pause);
+ ACE_OS::sleep (pause);
ACE_Write_Guard<ACE_RW_Thread_Mutex> g (rw_mutex);