diff options
Diffstat (limited to 'cpp')
-rwxr-xr-x | cpp/demo/Ice/session/SessionI.cpp | 3 |
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) { |