diff options
Diffstat (limited to 'TAO/tao/Dynamic_TP/DTP_Task.cpp')
-rw-r--r-- | TAO/tao/Dynamic_TP/DTP_Task.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/tao/Dynamic_TP/DTP_Task.cpp b/TAO/tao/Dynamic_TP/DTP_Task.cpp index 1d5a6d03f1f..30adce9c2e2 100644 --- a/TAO/tao/Dynamic_TP/DTP_Task.cpp +++ b/TAO/tao/Dynamic_TP/DTP_Task.cpp @@ -136,7 +136,7 @@ TAO_DTP_Task::open (void* /* args */) return 0; } - size_t num = this->init_pool_threads_; + int num = static_cast<int> (this->init_pool_threads_); if (TAO_debug_level > 4) { @@ -225,7 +225,7 @@ TAO_DTP_Task::open (void* /* args */) num)); } - this->active_count_ = num; + this->active_count_ = static_cast<size_t> (num); this->opened_ = true; this->accepting_requests_ = true; @@ -307,7 +307,7 @@ bool TAO_DTP_Task::need_active (void) { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, mon, this->aw_lock_, false); - return ((this->busy_threads_ == this->active_count_) && + return ((this->busy_threads_ == static_cast<unsigned long> (this->active_count_)) && ((this->max_pool_threads_ < 1) || (this->active_count_ < this->max_pool_threads_))); } |