summaryrefslogtreecommitdiff
path: root/TAO/tao/CSD_ThreadPool
diff options
context:
space:
mode:
authordai_y <dai_y@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-11-10 17:28:45 +0000
committerdai_y <dai_y@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-11-10 17:28:45 +0000
commitd3088db6658dbc3804e09223679f699200c971ff (patch)
tree5fdd707d34a3ee6375a3084f624e702c239f1c23 /TAO/tao/CSD_ThreadPool
parent19eed259a6ad682cfc8afd046b7b7f2b3ccb0846 (diff)
downloadATCD-d3088db6658dbc3804e09223679f699200c971ff.tar.gz
Thu Nov 10 10:18:20 USMST 2005 Yan Dai <dai_y@ociweb.com>
Diffstat (limited to 'TAO/tao/CSD_ThreadPool')
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp
index f3234ce5568..86f2a07477f 100644
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp
+++ b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp
@@ -43,15 +43,15 @@ TAO::CSD::TP_Strategy_Factory::init (int argc,
if (repo != 0)
repo->init(0,0);
- ACE_CString poa_name;
- unsigned long num_threads = 1;
- bool serialize_servants = true;
-
// Parse any service configurator parameters.
for (int curarg = 0; curarg < argc; curarg++)
if (ACE_OS::strcasecmp (argv[curarg],
ACE_TEXT("-CSDtp")) == 0)
{
+ ACE_CString poa_name;
+ unsigned long num_threads = 1;
+ bool serialize_servants = true;
+
curarg++;
if (curarg < argc)
{
@@ -83,7 +83,7 @@ TAO::CSD::TP_Strategy_Factory::init (int argc,
num_thread_str = arg_remainder.substr (0, pos);
ACE_CString off_str =
- arg.substr (pos + 1, arg.length () - pos);
+ arg_remainder.substr (pos + 1, arg.length () - pos);
// Case-insensitive string comparison.
if (ACE_OS::strcasecmp (off_str.c_str(),