summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerCache.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-04-27 16:06:50 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-04-27 16:06:50 +0000
commitf4a0472080eb9f570d23892154093f057288c601 (patch)
tree788cd4e98d6963e2a27a3bcdaae6e01973788302 /cpp/src/IceGrid/ServerCache.h
parentdos2unix (diff)
downloadice-f4a0472080eb9f570d23892154093f057288c601.tar.bz2
ice-f4a0472080eb9f570d23892154093f057288c601.tar.xz
ice-f4a0472080eb9f570d23892154093f057288c601.zip
More work on allocation.
Diffstat (limited to 'cpp/src/IceGrid/ServerCache.h')
-rw-r--r--cpp/src/IceGrid/ServerCache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h
index ea9c8437efa..4a7ea3a8243 100644
--- a/cpp/src/IceGrid/ServerCache.h
+++ b/cpp/src/IceGrid/ServerCache.h
@@ -14,6 +14,7 @@
#include <IceUtil/Shared.h>
#include <IceGrid/Descriptor.h>
#include <IceGrid/Internal.h>
+#include <IceGrid/Allocatable.h>
#include <IceGrid/Cache.h>
#include <IceGrid/AdapterCache.h>
@@ -27,7 +28,7 @@ class NodeCache;
class NodeEntry;
typedef IceUtil::Handle<NodeEntry> NodeEntryPtr;
-class ServerEntry : public IceUtil::Shared, public IceUtil::Monitor<IceUtil::Mutex>
+class ServerEntry : public Allocatable, public IceUtil::Monitor<IceUtil::Mutex>
{
public:
@@ -53,6 +54,9 @@ public:
void destroyCallback();
void exception(const Ice::Exception&);
+ virtual void allocated(const SessionIPtr&);
+ virtual void released(const SessionIPtr&);
+
private:
void syncImpl(bool);