summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-07 21:16:08 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-07 21:16:08 +0000
commit47c5a9e402102df8393347dc38c9ca0b2fb2f257 (patch)
tree86c35841e38d1ce1bcef3a01cc7e9b5272625693 /cpp/src/Ice/ThreadPool.cpp
parentfixes (diff)
downloadice-47c5a9e402102df8393347dc38c9ca0b2fb2f257.tar.bz2
ice-47c5a9e402102df8393347dc38c9ca0b2fb2f257.tar.xz
ice-47c5a9e402102df8393347dc38c9ca0b2fb2f257.zip
fixes
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 8b7bbfca768..6c06abedde3 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -68,7 +68,7 @@ IceInternal::ThreadPool::waitUntilServerFinished()
{
JTCSyncT<JTCMonitorT<JTCMutex> > sync(*this);
- while (_servers > 0 && _threadNum > 0)
+ while (_servers != 0 && _threadNum != 0)
{
try
{
@@ -79,7 +79,7 @@ IceInternal::ThreadPool::waitUntilServerFinished()
}
}
- if (_servers > 0)
+ if (_servers != 0)
{
_instance->logger()->error("can't wait for graceful server termination in thread pool\n"
"since all threads have vanished");
@@ -91,7 +91,7 @@ IceInternal::ThreadPool::waitUntilFinished()
{
JTCSyncT<JTCMonitorT<JTCMutex> > sync(*this);
- while (_handlerMap.size() > 0 && _threadNum > 0) // Faster than _reapList.size() with most STLs.
+ while (!_handlerMap.empty() && _threadNum != 0)
{
try
{
@@ -102,7 +102,7 @@ IceInternal::ThreadPool::waitUntilFinished()
}
}
- if (_handlerMap.size() > 0)
+ if (!_handlerMap.empty())
{
_instance->logger()->error("can't wait for graceful application termination in thread pool\n"
"since all threads have vanished");