diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-05-06 05:21:11 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-05-06 05:21:11 +0000 |
commit | 17377d7a8f6c8defd58e4184ea3910eea86365c3 (patch) | |
tree | 4fb91ca3779c4719a93000522743428c09980790 /performance-tests | |
parent | 01742cd090753884bc7bbbaa820dfb0ce81a27ff (diff) | |
download | ATCD-17377d7a8f6c8defd58e4184ea3910eea86365c3.tar.gz |
*** empty log message ***
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/Misc/context_switch_time.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp index 8ee00a4faed..a299b17e058 100644 --- a/performance-tests/Misc/context_switch_time.cpp +++ b/performance-tests/Misc/context_switch_time.cpp @@ -231,10 +231,8 @@ Suspend_Resume_Test::svc () { #if DEBUG > 0 if (i % (iterations_ >= 10 ? iterations_ / 10 : 1) == 0) - { - ACE_DEBUG ((LM_DEBUG, "Suspend_Resume_Test::svc (), iteration %u\n", - i)); - } + ACE_DEBUG ((LM_DEBUG, "Suspend_Resume_Test::svc (), iteration %u\n", + i)); #endif /* DEBUG */ if (ACE_OS::thr_suspend (low_.thread_id ()) != 0) @@ -450,7 +448,9 @@ Ping_Suspend_Resume_Test::svc () timer_.start (); - for (ACE_UINT32 i = 0; i < iterations_; ++i) + ACE_UINT32 i; + + for (i = 0; i < iterations_; ++i) { #if DEBUG > 0 if (i % (iterations_ >= 10 ? iterations_ / 10 : 1) == 0) @@ -481,17 +481,15 @@ Ping_Suspend_Resume_Test::svc () // Resume the thread until thr_continue fails, indicating that it has // finished. - for (ACE_UINT32 i = 0; i < 10000 && ! ACE_OS::thr_continue (high_.thread_id ()); + for (i = 0; i < 10000 && ! ACE_OS::thr_continue (high_.thread_id ()); ++i) /* null */; // Don't count the one iteration that was used to allow the high-priority // thread to terminate. if (high_.iterations () < iterations_) - { - ACE_DEBUG ((LM_DEBUG, "Ping_Suspend_Resume_Test: high priority task " - "executed only %u iterations!\n", - high_.iterations ())); - } + ACE_DEBUG ((LM_DEBUG, "Ping_Suspend_Resume_Test: high priority task " + "executed only %u iterations!\n", + high_.iterations ())); #if DEBUG > 0 ACE_DEBUG ((LM_DEBUG, "Ping_Suspend_Resume_Test::svc, finishing\n")); |