diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-10-09 19:02:45 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-10-09 19:02:45 +0000 |
commit | 57fec451b1858ff1e097ec9e91a07f849952ab78 (patch) | |
tree | 9cbf63f3bb71e17a80f72353b90a2e66b2980321 /TAO | |
parent | f8671a581d08af8aecede59d08b3a06284bd33bf (diff) | |
download | ATCD-57fec451b1858ff1e097ec9e91a07f849952ab78.tar.gz |
ChangeLogTag:Tue Oct 09 14:00:46 2001 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 10 | ||||
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp | 23 |
2 files changed, 25 insertions, 8 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index ac25aefc0ab..71b4c00cb29 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Tue Oct 09 14:00:46 2001 Nanbor Wang <nanbor@cs.wustl.edu> + + * performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp: + Changed to wrap the two ACE_Barriers in a struct instead of + using an array as egcs can not properly initialize the array. + Tue Oct 9 14:20:51 2001 Craig Rodrigues <crodrigu@bbn.com> * orbsvcs/tests/AVStreams/Modify_QoS/receiver.cpp: @@ -8,8 +14,8 @@ Tue Oct 9 14:20:51 2001 Craig Rodrigues <crodrigu@bbn.com> * orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.cpp: * orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.h: * orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile: - Fix exception specifications for modify_QoS() so that they match - IDL generated base class. Fix typos, update Makefile dependencies. + Fix exception specifications for modify_QoS() so that they match + IDL generated base class. Fix typos, update Makefile dependencies. Mon Oct 08 11:43:05 2001 Nanbor Wang <nanbor@cs.wustl.edu> diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp index 77a212bec3b..ece59a9223c 100644 --- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp +++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp @@ -14,13 +14,24 @@ ACE_RCSID(IDL_Cubit, collocation_test, "$Id$") #define THE_IOR "theior" +struct Barriers +{ + Barriers (unsigned int init) + : server_init_ (init), + client_fini_ (init) + {} + + ACE_Barrier server_init_; + ACE_Barrier client_fini_; +}; + static const char *server_cmd = 0; void * svr_worker (void *arg) { Cubit_Server cubit_server; - ACE_Barrier *barrier = (ACE_Barrier *) arg; + Barriers *barrier = (Barriers *) arg; char cmd_line[1024]; ACE_OS::strcpy (cmd_line, "server "); @@ -39,11 +50,11 @@ svr_worker (void *arg) if (result == -1) return (void *) 1; - barrier[0].wait (); + barrier->server_init_.wait (); cubit_server.run (ACE_TRY_ENV); ACE_TRY_CHECK; - barrier[1].wait (); + barrier->client_fini_.wait (); } ACE_CATCH (CORBA::SystemException, sysex) { @@ -91,7 +102,7 @@ main (int argc, char **argv) ACE_OS::strcat (cmd_line, " -f " THE_IOR); ACE_ARGV args (cmd_line); - ACE_Barrier barrier [2] = {2, 2}; + Barriers barrier (2); int retv = 1; @@ -101,7 +112,7 @@ main (int argc, char **argv) ACE_Thread_Manager tm; tm.spawn (ACE_reinterpret_cast (ACE_THR_FUNC, &svr_worker), &barrier); - barrier[0].wait (); + barrier.server_init_.wait (); ACE_OS::sleep (1); Cubit_Client cubit_client (1); @@ -112,7 +123,7 @@ main (int argc, char **argv) else retv = cubit_client.run (); - barrier[1].wait (); + barrier.client_fini_.wait (); tm.wait (); ACE_OS::unlink (THE_IOR); |