From 39952a0fc932b6a65612d3402937be9b222c13e1 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 3 May 2006 13:12:54 +0000 Subject: Added stress test, fixed bugs. --- cpp/src/IceGrid/AdapterCache.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/IceGrid/AdapterCache.h') diff --git a/cpp/src/IceGrid/AdapterCache.h b/cpp/src/IceGrid/AdapterCache.h index 8a70c23ddca..be7203955de 100644 --- a/cpp/src/IceGrid/AdapterCache.h +++ b/cpp/src/IceGrid/AdapterCache.h @@ -29,11 +29,11 @@ typedef std::vector ServerEntrySeq; class AdapterEntry; typedef IceUtil::Handle AdapterEntryPtr; -class AdapterEntry : public Allocatable, public IceUtil::Mutex +class AdapterEntry : virtual public IceUtil::Shared, public IceUtil::Mutex { public: - AdapterEntry(AdapterCache&, const std::string&, bool, const AllocatablePtr&); + AdapterEntry(AdapterCache&, const std::string&); virtual std::vector > getProxies(int&, const SessionIPtr&) = 0; virtual float getLeastLoadedNodeLoad(LoadSample) const = 0; @@ -49,7 +49,7 @@ protected: }; typedef IceUtil::Handle AdapterEntryPtr; -class ServerAdapterEntry : public AdapterEntry +class ServerAdapterEntry : public AdapterEntry, public Allocatable { public: @@ -63,7 +63,7 @@ public: AdapterPrx getProxy(const std::string& = std::string()) const; - virtual void allocated(const SessionIPtr&); + virtual bool allocated(const SessionIPtr&); virtual void released(const SessionIPtr&); private: -- cgit v1.2.3