summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionFactoryI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/session/SessionFactoryI.cpp')
-rwxr-xr-xcpp/demo/Ice/session/SessionFactoryI.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/cpp/demo/Ice/session/SessionFactoryI.cpp b/cpp/demo/Ice/session/SessionFactoryI.cpp
index 03fa652e862..e87dc33df75 100755
--- a/cpp/demo/Ice/session/SessionFactoryI.cpp
+++ b/cpp/demo/Ice/session/SessionFactoryI.cpp
@@ -7,27 +7,16 @@
//
// **********************************************************************
-#include <Ice/Ice.h> // XXX Get rid of this, SessionFactoryI.cpp must include this.
#include <SessionFactoryI.h>
#include <ReapThread.h>
using namespace std;
using namespace Demo;
-SessionFactoryI::SessionFactoryI()
-{
-}
-
-SessionFactoryI::~SessionFactoryI()
-{
-}
-
SessionPrx
-SessionFactoryI::create(const Ice::Current& c)
+SessionFactoryI::create(const string& name, const Ice::Current& c)
{
- Lock sync(*this); // XXX What is the mutex lock needed for?
-
- SessionIPtr session = new SessionI;
+ SessionIPtr session = new SessionI(name);
SessionPrx proxy = SessionPrx::uncheckedCast(c.adapter->addWithUUID(session));
ReapThread::instance()->add(proxy, session);
return proxy;