summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionFactoryI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-27 01:17:29 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-27 01:17:29 +0000
commit28b4ee78d72e2776443f185581f553c1f19780ae (patch)
treee532ded3c9db6cc934ebbca60c17273ea2e4277a /cpp/demo/Ice/session/SessionFactoryI.cpp
parentMade finalizers thread-safe. (diff)
downloadice-28b4ee78d72e2776443f185581f553c1f19780ae.tar.bz2
ice-28b4ee78d72e2776443f185581f553c1f19780ae.tar.xz
ice-28b4ee78d72e2776443f185581f553c1f19780ae.zip
removed singleton. removed friends.
Diffstat (limited to 'cpp/demo/Ice/session/SessionFactoryI.cpp')
-rwxr-xr-xcpp/demo/Ice/session/SessionFactoryI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/demo/Ice/session/SessionFactoryI.cpp b/cpp/demo/Ice/session/SessionFactoryI.cpp
index e87dc33df75..b16c6455d5e 100755
--- a/cpp/demo/Ice/session/SessionFactoryI.cpp
+++ b/cpp/demo/Ice/session/SessionFactoryI.cpp
@@ -8,17 +8,21 @@
// **********************************************************************
#include <SessionFactoryI.h>
-#include <ReapThread.h>
using namespace std;
using namespace Demo;
+SessionFactoryI::SessionFactoryI(const ReapThreadPtr& reapThread) :
+ _reaper(reapThread)
+{
+}
+
SessionPrx
SessionFactoryI::create(const string& name, const Ice::Current& c)
{
SessionIPtr session = new SessionI(name);
SessionPrx proxy = SessionPrx::uncheckedCast(c.adapter->addWithUUID(session));
- ReapThread::instance()->add(proxy, session);
+ _reaper->add(proxy, session);
return proxy;
}