diff options
Diffstat (limited to 'cpp/demo/Ice/session/SessionFactoryI.cpp')
-rwxr-xr-x | cpp/demo/Ice/session/SessionFactoryI.cpp | 8 |
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; } |