summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Cache.h')
-rw-r--r--cpp/src/IceGrid/Cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Cache.h b/cpp/src/IceGrid/Cache.h
index 51d7e9dcc57..65b246a2be7 100644
--- a/cpp/src/IceGrid/Cache.h
+++ b/cpp/src/IceGrid/Cache.h
@@ -19,7 +19,7 @@ namespace IceGrid
{
template<typename Key, typename Value>
-class Cache : public IceUtil::Mutex
+class Cache : public IceUtil::Monitor<IceUtil::Mutex>
{
typedef IceUtil::Handle<Value> ValuePtr;
typedef std::map<Key, ValuePtr> ValueMap;
@@ -142,7 +142,7 @@ public:
virtual std::vector<std::string>
getAll(const std::string& expr)
{
- IceUtil::Mutex::Lock sync(*this);
+ IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
return getMatchingKeys<std::map<std::string,TPtr> >(Cache<std::string, T>::_entries, expr);
}
};