diff options
Diffstat (limited to 'ACE/tests/Manual_Event_Test.cpp')
-rw-r--r-- | ACE/tests/Manual_Event_Test.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ACE/tests/Manual_Event_Test.cpp b/ACE/tests/Manual_Event_Test.cpp index 3c914698d56..1b28d846a71 100644 --- a/ACE/tests/Manual_Event_Test.cpp +++ b/ACE/tests/Manual_Event_Test.cpp @@ -47,6 +47,9 @@ static int test_result = 0; // state is 0). static ACE_Manual_Event evt ((unsigned int) 0); +// Default number of iterations. +static int n_iterations = 10; + // Number of worker threads. static long n_workers = 10; @@ -71,7 +74,7 @@ print_usage_and_die (void) static void parse_args (int argc, ACE_TCHAR *argv[]) { - ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("w:")); + ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("w:n:")); int c; @@ -81,6 +84,9 @@ parse_args (int argc, ACE_TCHAR *argv[]) case 'w': n_workers = ACE_OS::atoi (get_opt.opt_arg ()); break; + case 'n': + n_iterations = ACE_OS::atoi (get_opt.opt_arg ()); + break; default: print_usage_and_die (); break; |