diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-17 18:18:56 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-17 18:18:56 +0000 |
commit | ba3284190a5c6d7ded9645f00e965c5162393a5b (patch) | |
tree | 9d036f1baef585b57bad59e17de5516d9f9882b0 /cpp/src/Ice/ThreadPool.cpp | |
parent | getPropertyAsInt (diff) | |
download | ice-ba3284190a5c6d7ded9645f00e965c5162393a5b.tar.bz2 ice-ba3284190a5c6d7ded9645f00e965c5162393a5b.tar.xz ice-ba3284190a5c6d7ded9645f00e965c5162393a5b.zip |
property convenience operations
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index b149265b717..fcee3afb792 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -181,8 +181,8 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance) : _maxFd = _fdIntrRead; _minFd = _fdIntrRead; - _timeout = atoi(_properties->getProperty("Ice.ServerIdleTime").c_str()); - _threadNum = atoi(_properties->getPropertyWithDefault("Ice.ThreadPool.Size", "10").c_str()); + _timeout = _properties->getPropertyAsInt("Ice.ServerIdleTime"); + _threadNum = _properties->getPropertyAsIntWithDefault("Ice.ThreadPool.Size", 10); if (_threadNum < 1) { _threadNum = 1; @@ -207,7 +207,7 @@ IceInternal::ThreadPool::ThreadPool(const InstancePtr& instance) : } // Must be called after _threadNum is set. - setMaxConnections(atoi(_properties->getProperty("Ice.ThreadPool.MaxConnections").c_str())); + setMaxConnections(_properties->getPropertyAsInt("Ice.ThreadPool.MaxConnections")); } IceInternal::ThreadPool::~ThreadPool() |