summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-14 07:51:23 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-14 07:51:23 +0000
commit6cb0c33d05a46237fedfd31e46fcfd977708f48d (patch)
tree2d630ba90ae49942e8d7915a5640f0d9f673e7c7 /cpp/demo/Ice/session/SessionI.cpp
parentFormatting fixes. (diff)
downloadice-6cb0c33d05a46237fedfd31e46fcfd977708f48d.tar.bz2
ice-6cb0c33d05a46237fedfd31e46fcfd977708f48d.tar.xz
ice-6cb0c33d05a46237fedfd31e46fcfd977708f48d.zip
fix.
Diffstat (limited to 'cpp/demo/Ice/session/SessionI.cpp')
-rwxr-xr-xcpp/demo/Ice/session/SessionI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/Ice/session/SessionI.cpp b/cpp/demo/Ice/session/SessionI.cpp
index ca6d0e8b058..9b1a2325bf6 100755
--- a/cpp/demo/Ice/session/SessionI.cpp
+++ b/cpp/demo/Ice/session/SessionI.cpp
@@ -55,6 +55,7 @@ SessionI::~SessionI()
HelloPrx
SessionI::createHello(const Ice::Current&)
{
+ Lock sync(*this);
HelloPrx hello = HelloPrx::uncheckedCast(_adapter->addWithUUID(new HelloI(_nextId++)));
_objs.push_back(hello);
return hello;
@@ -85,7 +86,7 @@ void
SessionI::destroyCallback()
{
Lock sync(*this);
- cout << "destroying session: _destroy=" << _destroy << " timeout="
+ cout << "SessionI::destroyCallback: _destroy=" << _destroy << " timeout="
<< ((IceUtil::Time::now()-_refreshTime) > _timeout) << endl;
for(list<HelloPrx>::const_iterator p = _objs.begin(); p != _objs.end(); ++p)
{