summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 6a3d26c95c5..63fc22a7f11 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -625,7 +625,13 @@ IceInternal::ThreadPool::run()
assert(_inUse > 0);
--_inUse;
}
-
+
+ //
+ // Do not wait to be promoted again to release these objects.
+ //
+ handler = 0;
+ workItem = 0;
+
while(!_promote)
{
wait();