diff options
-rw-r--r-- | performance-tests/Misc/context_switch_time.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp index fdb1b4097d0..0b3c22c7d06 100644 --- a/performance-tests/Misc/context_switch_time.cpp +++ b/performance-tests/Misc/context_switch_time.cpp @@ -78,18 +78,18 @@ static const char usage [] = "[-? |\n" #define DEBUG 0 #endif /* DEBUG */ -#if defined (__sun) -/* Solaris priority values range from low to high with increasing priority */ -static const unsigned int LOW_PRIORITY = 1; -static const unsigned int HIGH_PRIORITY = 2; +#if defined (__sun) || defined (ACE_WIN32) + // Solaris and Win32 priority values range from low to high with + // increasing priority + static const unsigned int LOW_PRIORITY = 1; + static const unsigned int HIGH_PRIORITY = 2; #else -/* VxWorks and Win32 priority values range from high to low with - increasing priority */ -static const unsigned int LOW_PRIORITY = 2; -static const unsigned int HIGH_PRIORITY = 1; + // VxWorks priority values range from high to low with + // increasing priority + static const unsigned int LOW_PRIORITY = 2; + static const unsigned int HIGH_PRIORITY = 1; #endif - // global test configuration parameters static unsigned long count = 1; static unsigned long num_iterations = 1000; @@ -584,6 +584,7 @@ Yield_Test::svc () // function get_options /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// + static unsigned int get_options (int argc, char *argv []) @@ -647,6 +648,7 @@ get_options (int argc, char *argv []) // function main /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// + int main (int argc, char *argv []) { |