summaryrefslogtreecommitdiff
path: root/performance-tests/Misc
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-26 13:36:12 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-26 13:36:12 +0000
commitfb70256392a9a7262cc39f1ee44897d06dda1eda (patch)
tree139cb287530d61ee4908bca19449fb38ef4a8c2d /performance-tests/Misc
parent524d674f59b57d01d21879d5e88db9ff3ae51490 (diff)
downloadATCD-fb70256392a9a7262cc39f1ee44897d06dda1eda.tar.gz
use same priority values on Win32 platforms as on Solaris, because thread priority increases with increasing priority values on both of those platforms
Diffstat (limited to 'performance-tests/Misc')
-rw-r--r--performance-tests/Misc/context_switch_time.cpp20
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 [])
{