summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeSessionManager.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-10-24 10:07:47 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-10-24 10:07:47 +0000
commit7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f (patch)
tree573b60cfabd063723d8d2c4e9f81a4972581a2a6 /cpp/src/IceGrid/NodeSessionManager.cpp
parentRemoved Properties.sgml and ProxiesEndpoints.sgml. (diff)
downloadice-7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f.tar.bz2
ice-7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f.tar.xz
ice-7b592e7fe94abf0e8e8e493bb5e83d92f0c5415f.zip
Fixed bug where node couldn't be interrupted if master isn't available
Diffstat (limited to 'cpp/src/IceGrid/NodeSessionManager.cpp')
-rw-r--r--cpp/src/IceGrid/NodeSessionManager.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/NodeSessionManager.cpp b/cpp/src/IceGrid/NodeSessionManager.cpp
index 7bae899a9bf..71981be12fd 100644
--- a/cpp/src/IceGrid/NodeSessionManager.cpp
+++ b/cpp/src/IceGrid/NodeSessionManager.cpp
@@ -260,11 +260,18 @@ NodeSessionManager::create(const InternalRegistryPrx& replica)
thread->tryCreateSession();
}
-void
+bool
NodeSessionManager::waitForCreate()
{
assert(_thread);
- _thread->waitForCreate();
+ return _thread->waitForCreate();
+}
+
+void
+NodeSessionManager::terminate()
+{
+ assert(_thread);
+ _thread->terminate();
}
void