summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/SessionI.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/SessionI.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/SessionI.cpp')
-rwxr-xr-xcpp/demo/Ice/session/SessionI.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/cpp/demo/Ice/session/SessionI.cpp b/cpp/demo/Ice/session/SessionI.cpp
index c21cfd7b5cc..83673decf76 100755
--- a/cpp/demo/Ice/session/SessionI.cpp
+++ b/cpp/demo/Ice/session/SessionI.cpp
@@ -40,11 +40,19 @@ private:
const int _id;
};
+SessionI::SessionI(const string& name) :
+ _name(name),
+ _timestamp(IceUtil::Time::now()),
+ _nextId(0),
+ _destroy(false)
+{
+ cout << "The session " << _name << " is now created." << endl;
+}
+
HelloPrx
SessionI::createHello(const Ice::Current& c)
{
Lock sync(*this);
-
if(_destroy)
{
throw Ice::ObjectNotExistException(__FILE__, __LINE__);
@@ -59,7 +67,6 @@ void
SessionI::refresh(const Ice::Current& c)
{
Lock sync(*this);
-
if(_destroy)
{
throw Ice::ObjectNotExistException(__FILE__, __LINE__);
@@ -72,7 +79,6 @@ string
SessionI::getName(const Ice::Current&) const
{
Lock sync(*this);
-
if(_destroy)
{
throw Ice::ObjectNotExistException(__FILE__, __LINE__);
@@ -120,12 +126,3 @@ SessionI::timestamp() const
}
return _timestamp;
}
-
-SessionI::SessionI(const string& name) :
- _name(name),
- _timestamp(IceUtil::Time::now()),
- _nextId(0),
- _destroy(false)
-{
- cout << "The session " << _name << " is now created." << endl;
-}