diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-04-19 07:22:26 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-04-19 07:22:26 +0000 |
commit | 21d4f05364a1bd09eabc075a3bffdbae4d0b92b5 (patch) | |
tree | 5d9664798d26581ddc3e47ed6224ee877dca2e90 /cpp/demo/Ice/session/SessionFactoryI.h | |
parent | Added missing lock. (diff) | |
download | ice-21d4f05364a1bd09eabc075a3bffdbae4d0b92b5.tar.bz2 ice-21d4f05364a1bd09eabc075a3bffdbae4d0b92b5.tar.xz ice-21d4f05364a1bd09eabc075a3bffdbae4d0b92b5.zip |
addressed few more concerns.
Diffstat (limited to 'cpp/demo/Ice/session/SessionFactoryI.h')
-rwxr-xr-x | cpp/demo/Ice/session/SessionFactoryI.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/cpp/demo/Ice/session/SessionFactoryI.h b/cpp/demo/Ice/session/SessionFactoryI.h index fff5ea24578..6987d7f1d22 100755 --- a/cpp/demo/Ice/session/SessionFactoryI.h +++ b/cpp/demo/Ice/session/SessionFactoryI.h @@ -11,34 +11,16 @@ #define SESSION_FACTORY_I_H #include <Session.h> -#include <ReapThread.h> // XXX Not checked in. -class SessionFactoryI : public ::Demo::SessionFactory, public IceUtil::Mutex +class SessionFactoryI : public Demo::SessionFactory, public IceUtil::Mutex { public: - SessionFactoryI(const ReapThreadPtr&); + SessionFactoryI(); virtual ~SessionFactoryI(); - virtual ::Demo::SessionPrx create(const ::Ice::Current&); + virtual Demo::SessionPrx create(const ::Ice::Current&); virtual void shutdown(const Ice::Current&); - -private: - - // XXX Why does the factory have to know the reaper thread? The - // sessions should know, they can register themselves directly - // with the reaper thread. - // - // If I do this it means that either the reap thread must be a - // singleton, or I need to pass the reap thread to session and - // tell the session its proxy which it currently does not - // know. Since the session factory knows both, this seems like a - // better solution. - // - // XXX Make it a singleton, because it is a singleton. It doesn't - // belong here. - // - const ReapThreadPtr _reapThread; }; #endif |