summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Instance.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-03-07 00:01:53 +0000
committerMarc Laukien <marc@zeroc.com>2003-03-07 00:01:53 +0000
commit3e90624473432dfcbd6860face6a078917a27803 (patch)
tree3f5d8388b3caa1a1ca8f6890f7018683697cd070 /cpp/src/Ice/Instance.cpp
parentinternal thread pool changes (diff)
downloadice-3e90624473432dfcbd6860face6a078917a27803.tar.bz2
ice-3e90624473432dfcbd6860face6a078917a27803.tar.xz
ice-3e90624473432dfcbd6860face6a078917a27803.zip
internal thread pool changes
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r--cpp/src/Ice/Instance.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp
index 5c7f00b2643..3b32c71d510 100644
--- a/cpp/src/Ice/Instance.cpp
+++ b/cpp/src/Ice/Instance.cpp
@@ -207,8 +207,7 @@ IceInternal::Instance::clientThreadPool()
if(!_clientThreadPool) // Lazy initialization.
{
- int threadNum = _properties->getPropertyAsIntWithDefault("Ice.ThreadPool.Client.Size", 1);
- _clientThreadPool = new ThreadPool(this, threadNum, 0);
+ _clientThreadPool = new ThreadPool(this, "Ice.ThreadPool.Client", 0);
}
return _clientThreadPool;
@@ -223,9 +222,15 @@ IceInternal::Instance::serverThreadPool()
if(!_serverThreadPool) // Lazy initialization.
{
- int threadNum = _properties->getPropertyAsIntWithDefault("Ice.ThreadPool.Server.Size", 10);
+ //
+ // Make sure that the server thread pool default is set
+ // correctly.
+ //
+ _properties->setProperty("Ice.ThreadPool.Server.Size",
+ _properties->getPropertyWithDefault("Ice.ThreadPool.Server.Size", "10"));
+
int timeout = _properties->getPropertyAsInt("Ice.ServerIdleTime");
- _serverThreadPool = new ThreadPool(this, threadNum, timeout);
+ _serverThreadPool = new ThreadPool(this, "Ice.ThreadPool.Server", timeout);
}
return _serverThreadPool;