diff options
author | bala <balanatarajan@users.noreply.github.com> | 2004-03-06 05:08:23 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2004-03-06 05:08:23 +0000 |
commit | ea46753f2a6dcd5b3291623e5a64d3b61b0b82ba (patch) | |
tree | 86bcab5c91a16f792041c282ec0d24250e0ffe4f /TAO/tao/Thread_Per_Connection_Handler.cpp | |
parent | 1adf97fe46ca8864e629057d587fa915e23d7ef5 (diff) | |
download | ATCD-ea46753f2a6dcd5b3291623e5a64d3b61b0b82ba.tar.gz |
ChangeLogTag:Fri Mar 5 23:31:34 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/Thread_Per_Connection_Handler.cpp')
-rw-r--r-- | TAO/tao/Thread_Per_Connection_Handler.cpp | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/TAO/tao/Thread_Per_Connection_Handler.cpp b/TAO/tao/Thread_Per_Connection_Handler.cpp index 2399e30b81b..0f151af408e 100644 --- a/TAO/tao/Thread_Per_Connection_Handler.cpp +++ b/TAO/tao/Thread_Per_Connection_Handler.cpp @@ -35,7 +35,8 @@ TAO_Thread_Per_Connection_Handler::activate (long flags, ACE_hthread_t thread_handles[], void *stack[], size_t stack_size[], - ACE_thread_t thread_names[]) + ACE_thread_t thread_names[], + bool inherit_priority) { if (TAO_debug_level) { @@ -55,35 +56,8 @@ TAO_Thread_Per_Connection_Handler::activate (long flags, thread_handles, stack, stack_size, - thread_names); -} - -int -TAO_Thread_Per_Connection_Handler::activate_threads (long flags, - int n_threads) -{ - int priority = ACE_DEFAULT_THREAD_PRIORITY; - int sched_policy = ACE_SCHED_OTHER; - - // Get the system policy and priority - if (ACE_Thread::getprio (ACE_Thread::self (), - priority, - sched_policy) == -1) - { - priority = ACE_DEFAULT_THREAD_PRIORITY; - } - - if (sched_policy == ACE_SCHED_FIFO) - ACE_SET_BITS (flags, THR_SCHED_FIFO); - else if (sched_policy == ACE_SCHED_RR) - ACE_SET_BITS (flags, THR_SCHED_FIFO); - else - ACE_SET_BITS (flags, THR_SCHED_DEFAULT); - - return this->activate (flags, - n_threads, - 0, - priority); + thread_names, + true); } int |