summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Latency/st_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Latency/st_client.cpp')
-rw-r--r--TAO/performance-tests/Latency/st_client.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/TAO/performance-tests/Latency/st_client.cpp b/TAO/performance-tests/Latency/st_client.cpp
index e73f2dd8da9..19eadf9361c 100644
--- a/TAO/performance-tests/Latency/st_client.cpp
+++ b/TAO/performance-tests/Latency/st_client.cpp
@@ -11,11 +11,12 @@ ACE_RCSID(Latency, st_client, "$Id$")
const char *ior = "file://test.ior";
int niterations = 100;
int period = -1;
+int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:p:");
+ ACE_Get_Opt get_opts (argc, argv, "k:i:p:");
int c;
while ((c = get_opts ()) != -1)
@@ -30,12 +31,17 @@ parse_args (int argc, char *argv[])
case 'p':
period = ACE_OS::atoi (get_opts.optarg);
break;
+ case 'x':
+ do_shutdown = 0;
+ break;
case '?':
default:
ACE_ERROR_RETURN ((LM_ERROR,
"usage: %s "
"-k <ior> "
"-i <niterations> "
+ "-p <period> "
+ "-x (disable shutdown) "
"\n",
argv [0]),
-1);
@@ -140,8 +146,11 @@ main (int argc, char *argv[])
ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
client.dump_stats ("Single thread", gsf);
- server->shutdown (ACE_TRY_ENV);
- ACE_TRY_CHECK;
+ if (do_shutdown)
+ {
+ server->shutdown (ACE_TRY_ENV);
+ ACE_TRY_CHECK;
+ }
}
ACE_CATCHANY
{