diff options
Diffstat (limited to 'TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp')
-rw-r--r-- | TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp index 5861424f7bc..78c4ef2b411 100644 --- a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp +++ b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp @@ -344,12 +344,24 @@ TAO_DTP_Thread_Pool::create_threads_i (size_t count) default_thread_handles, default_stack, stack_size_array); - if (TAO_debug_level > 7) + if (result == 0) { - TAOLIB_DEBUG ((LM_DEBUG, - ACE_TEXT ("TAO (%P|%t) new DTP thread requester waiting\n"))); + if (TAO_debug_level > 7) + { + TAOLIB_DEBUG ((LM_DEBUG, + ACE_TEXT ("TAO (%P|%t) new DTP thread requester waiting\n"))); + } + this->activation_cond_.wait (); + } + else + { + if (TAO_debug_level > 0) + { + TAOLIB_ERROR ((LM_ERROR, + ACE_TEXT ("TAO (%P|%t) new DTP thread failed %p\n"), + ACE_TEXT ("ACE_Task_Base::activate"))); + } } - this->activation_cond_.wait (); } if (TAO_debug_level > 7) { |