diff options
author | Marc Laukien <marc@zeroc.com> | 2004-02-16 14:50:37 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-02-16 14:50:37 +0000 |
commit | 8582bf17281769d6b58618018f2119f9dd520ac7 (patch) | |
tree | f714107e952bcb13c288b417c95cf6722825c2b4 /cpp/src/Ice/ThreadPool.cpp | |
parent | fix (diff) | |
download | ice-8582bf17281769d6b58618018f2119f9dd520ac7.tar.bz2 ice-8582bf17281769d6b58618018f2119f9dd520ac7.tar.xz ice-8582bf17281769d6b58618018f2119f9dd520ac7.zip |
fixes
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index ace4a8aefa9..671799f5e99 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -67,16 +67,17 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance, const string& p { size = 1; } - const_cast<int&>(_size) = size; - int sizeMax = _instance->properties()->getPropertyAsIntWithDefault(_prefix + ".SizeMax", _size * 10); - if(sizeMax < _size) + int sizeMax = _instance->properties()->getPropertyAsIntWithDefault(_prefix + ".SizeMax", size); + if(sizeMax < size) { - sizeMax = _size; - } - const_cast<int&>(_sizeMax) = sizeMax; + sizeMax = size; + } + + int sizeWarn = _instance->properties()->getPropertyAsIntWithDefault(_prefix + ".SizeWarn", sizeMax * 80 / 100); - int sizeWarn = _instance->properties()->getPropertyAsIntWithDefault(_prefix + ".SizeWarn", _sizeMax * 80 / 100); + const_cast<int&>(_size) = size; + const_cast<int&>(_sizeMax) = sizeMax; const_cast<int&>(_sizeWarn) = sizeWarn; const_cast<int&>(_messageSizeMax) = instance->messageSizeMax(); |