summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionFactoryI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-20 00:19:09 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-20 00:19:09 +0000
commite6b18342bcab622b131f1634fb67fbaaeb356465 (patch)
treebc8d1f6312e2b8ea61f1ee1af7566da06b7adc44 /cpp/demo/Ice/session/SessionFactoryI.cpp
parentmerging a fix for bug 228 (diff)
downloadice-e6b18342bcab622b131f1634fb67fbaaeb356465.tar.bz2
ice-e6b18342bcab622b131f1634fb67fbaaeb356465.tar.xz
ice-e6b18342bcab622b131f1634fb67fbaaeb356465.zip
more changes to the session demo.
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;