summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp')
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
index 714f7ac2bc9..83c02497c97 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
@@ -3,8 +3,7 @@
#include "Globals.h"
Globals::Globals (void)
- : thr_create_flags (0),
- default_priority (0),
+ : thr_create_flags (THR_BOUND),
ior_file (0),
base_port (0),
num_of_objs (2),
@@ -89,8 +88,6 @@ Globals::sched_fifo_init (void)
ACE_DEBUG ((LM_MAX,
"User is not superuser, "
"so remain in time-sharing class\n"));
- ACE_SET_BITS (GLOBALS::instance ()->thr_create_flags, THR_NEW_LWP);
- GLOBALS::instance ()->default_priority = ACE_THR_PRI_OTHER_DEF;
return 1;
}
else
@@ -104,10 +101,7 @@ Globals::sched_fifo_init (void)
-1);
#endif /* ACE_HAS_THREADS */
- ACE_SET_BITS (GLOBALS::instance ()->thr_create_flags, THR_BOUND);
ACE_SET_BITS (GLOBALS::instance ()->thr_create_flags, THR_SCHED_FIFO);
- GLOBALS::instance ()->default_priority = ACE_THR_PRI_FIFO_DEF;
-
return 0;
}
@@ -123,13 +117,13 @@ MT_Priority::get_high_priority (void)
ACE_Sched_Priority high_priority;
#if defined (VXWORKS)
- high_priority = GLOBALS::instance ()->default_priority;
+ high_priority = ACE_THR_PRI_FIFO_DEF;
#elif defined (ACE_WIN32)
high_priority =
ACE_Sched_Params::priority_max (ACE_SCHED_FIFO,
ACE_SCOPE_THREAD);
#else
- high_priority = GLOBALS::instance ()->default_priority;
+ high_priority = ACE_THR_PRI_FIFO_DEF + PRIORITY_INCR;
#endif /* VXWORKS */
return high_priority;
}