diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-10-08 12:56:33 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-10-08 12:56:33 +0000 |
commit | 0fdc37ef6ac89595e8978fcfe101c433ead1fc69 (patch) | |
tree | b981310bb234d06c7a885d0c34ba3da5c5385078 /TAO/orbsvcs/tests/EC_Throughput | |
parent | b6b2f137a49b86e5471f067d7c0c6247e9ceeb3a (diff) | |
download | ATCD-0fdc37ef6ac89595e8978fcfe101c433ead1fc69.tar.gz |
Wed Oct 8 12:54:45 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/orbsvcs/tests/EC_Throughput')
10 files changed, 23 insertions, 23 deletions
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp index 29385f74690..26d765f6145 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp @@ -96,7 +96,7 @@ Test_Consumer::disconnect (void) } void -Test_Consumer::dump_results (const char* name, +Test_Consumer::dump_results (const ACE_TCHAR* name, ACE_UINT32 gsf) { this->throughput_.dump_results (name, gsf); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h index 9bd6323c48a..cf94e33386d 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.h @@ -53,7 +53,7 @@ public: void disconnect (void); // Disconnect from the EC. - void dump_results (const char* name, + void dump_results (const ACE_TCHAR* name, ACE_UINT32 global_scale_factor); // Print out the results diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp index f201c2420d3..8d93fa1ee73 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp @@ -85,7 +85,7 @@ ECT_Consumer_Driver::run (int argc, ACE_TCHAR* argv[]) this->type_start_, this->type_count_, - this->pid_file_name_?this->pid_file_name_:"nil") ); + this->pid_file_name_?this->pid_file_name_:ACE_TEXT("nil")) ); } if (this->pid_file_name_ != 0) @@ -269,7 +269,7 @@ ECT_Consumer_Driver::disconnect_consumers (void) } int -ECT_Consumer_Driver::parse_args (int argc, char *argv []) +ECT_Consumer_Driver::parse_args (int argc, ACE_TCHAR *argv []) { ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("xdc:s:h:p:o:")); int opt; @@ -293,7 +293,7 @@ ECT_Consumer_Driver::parse_args (int argc, char *argv []) case 'h': { char* aux; - char* arg = ACE_OS::strtok_r (get_opt.opt_arg (), ",", &aux); + char* arg = ACE_OS::strtok_r (ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ()), ",", &aux); this->type_start_ = ACE_ES_EVENT_UNDEFINED + ACE_OS::atoi (arg); arg = ACE_OS::strtok_r (0, ",", &aux); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h index c0b61601fdb..fa8121e15da 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.h @@ -84,7 +84,7 @@ private: int shutdown_event_channel_; // If not zero it will shutdown the event channel upon exit. - const char* pid_file_name_; + const ACE_TCHAR* pid_file_name_; // The name of a file where the process stores its pid CORBA::ORB_var orb_; diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp index 3616728f938..3357ec50f68 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp @@ -238,7 +238,7 @@ Test_Supplier::consumer_proxy (void) } void -Test_Supplier::dump_results (const char* name, +Test_Supplier::dump_results (const ACE_TCHAR* name, ACE_UINT32 gsf) { this->throughput_.dump_results (name, gsf); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h index 073e85e601d..1c09a0d2efe 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.h @@ -61,7 +61,7 @@ public: // We talk to the EC (as a supplier) using this proxy, no duplicates // are done here... - void dump_results (const char* name, + void dump_results (const ACE_TCHAR* name, ACE_UINT32 global_scale_factor); // Dump the results... diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp index 07a5f752d17..3cafc9acc7f 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp @@ -96,7 +96,7 @@ ECT_Supplier_Driver::run (int argc, ACE_TCHAR* argv[]) this->type_start_, this->type_count_, - this->pid_file_name_?this->pid_file_name_:"nil") ); + this->pid_file_name_?this->pid_file_name_:ACE_TEXT("nil")) ); } if (this->pid_file_name_ != 0) @@ -265,8 +265,8 @@ ECT_Supplier_Driver::dump_results (void) ACE_Throughput_Stats throughput; for (int i = 0; i < this->n_suppliers_; ++i) { - char buf[BUFSIZ]; - ACE_OS::sprintf (buf, "supplier_%02d", i); + ACE_TCHAR buf[BUFSIZ]; + ACE_OS::sprintf (buf, ACE_TEXT("supplier_%02d"), i); this->suppliers_[i]->dump_results (buf, gsf); this->suppliers_[i]->accumulate (throughput); @@ -275,7 +275,7 @@ ECT_Supplier_Driver::dump_results (void) } int -ECT_Supplier_Driver::parse_args (int argc, char *argv []) +ECT_Supplier_Driver::parse_args (int argc, ACE_TCHAR *argv []) { ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("ds:u:n:t:b:h:p:")); int opt; @@ -307,7 +307,7 @@ ECT_Supplier_Driver::parse_args (int argc, char *argv []) case 'h': { char* aux; - char* arg = ACE_OS::strtok_r (get_opt.opt_arg (), ",", &aux); + char* arg = ACE_OS::strtok_r (ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ()), ",", &aux); this->type_start_ = ACE_ES_EVENT_UNDEFINED + ACE_OS::atoi (arg); arg = ACE_OS::strtok_r (0, ",", &aux); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.h index 7e49cc71264..44ef3755309 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.h @@ -83,7 +83,7 @@ private: int type_count_; // We send two types of events, with different contents. - const char* pid_file_name_; + const ACE_TCHAR* pid_file_name_; // The name of a file where the process stores its pid }; diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp index 3a63a8dd2dd..267d2cd920f 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp @@ -123,7 +123,7 @@ ECT_Throughput::run (int argc, ACE_TCHAR* argv[]) this->supplier_type_count_, this->supplier_type_shift_, - this->pid_file_name_?this->pid_file_name_:"nil", + this->pid_file_name_?this->pid_file_name_:ACE_TEXT("nil"), this->ec_concurrency_hwm_ ) ); } @@ -416,8 +416,8 @@ ECT_Throughput::dump_results (void) ACE_Throughput_Stats consumers; for (int j = 0; j < this->n_consumers_; ++j) { - char buf[BUFSIZ]; - ACE_OS::sprintf (buf, "consumer_%02d", j); + ACE_TCHAR buf[BUFSIZ]; + ACE_OS::sprintf (buf, ACE_TEXT("consumer_%02d"), j); this->consumers_[j]->dump_results (buf, gsf); this->consumers_[j]->accumulate (consumers); @@ -427,8 +427,8 @@ ECT_Throughput::dump_results (void) ACE_Throughput_Stats suppliers; for (int i = 0; i < this->n_suppliers_; ++i) { - char buf[BUFSIZ]; - ACE_OS::sprintf (buf, "supplier_%02d", i); + ACE_TCHAR buf[BUFSIZ]; + ACE_OS::sprintf (buf, ACE_TEXT("supplier_%02d"), i); this->suppliers_[i]->dump_results (buf, gsf); this->suppliers_[i]->accumulate (suppliers); @@ -437,7 +437,7 @@ ECT_Throughput::dump_results (void) } int -ECT_Throughput::parse_args (int argc, char *argv []) +ECT_Throughput::parse_args (int argc, ACE_TCHAR *argv []) { ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("dc:s:u:n:t:b:h:l:p:w:")); int opt; @@ -473,7 +473,7 @@ ECT_Throughput::parse_args (int argc, char *argv []) case 'h': { char* aux; - char* arg = ACE_OS::strtok_r (get_opt.opt_arg (), ",", &aux); + char* arg = ACE_OS::strtok_r (ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ()), ",", &aux); this->consumer_type_start_ = ACE_ES_EVENT_UNDEFINED + ACE_OS::atoi (arg); arg = ACE_OS::strtok_r (0, ",", &aux); @@ -486,7 +486,7 @@ ECT_Throughput::parse_args (int argc, char *argv []) case 'l': { char* aux; - char* arg = ACE_OS::strtok_r (get_opt.opt_arg (), ",", &aux); + char* arg = ACE_OS::strtok_r (ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ()), ",", &aux); this->supplier_type_start_ = ACE_ES_EVENT_UNDEFINED + ACE_OS::atoi (arg); arg = ACE_OS::strtok_r (0, ",", &aux); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h index 6b7f41449dd..084a636c7d3 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.h @@ -111,7 +111,7 @@ private: // Supplier2: [start + 2*shift, start + 2*shift + count) // And so on. - const char* pid_file_name_; + const ACE_TCHAR* pid_file_name_; // The name of a file where the process stores its pid CORBA::ORB_var orb_; |