summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ReapThread.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-05-19 10:49:59 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-05-19 10:49:59 +0000
commita51cde3a12b029a02f6fafaba45508971edb1aa9 (patch)
tree8e983a63db33c6ee67feef5d8952695cb6fd6963 /cpp/src/IceGrid/ReapThread.cpp
parenttry different compiler workaround for nested templates and iterators (diff)
downloadice-a51cde3a12b029a02f6fafaba45508971edb1aa9.tar.bz2
ice-a51cde3a12b029a02f6fafaba45508971edb1aa9.tar.xz
ice-a51cde3a12b029a02f6fafaba45508971edb1aa9.zip
Session re-factoring.
Diffstat (limited to 'cpp/src/IceGrid/ReapThread.cpp')
-rw-r--r--cpp/src/IceGrid/ReapThread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/ReapThread.cpp b/cpp/src/IceGrid/ReapThread.cpp
index 103bd18997e..bdda6941c7b 100644
--- a/cpp/src/IceGrid/ReapThread.cpp
+++ b/cpp/src/IceGrid/ReapThread.cpp
@@ -70,6 +70,10 @@ ReapThread::terminate()
list<ReapablePtr> reap;
{
Lock sync(*this);
+ if(_terminated)
+ {
+ return;
+ }
_terminated = true;
notify();
reap.swap(_sessions);