HashMap: Fix the build with GCC 7.
This commit is contained in:
@@ -163,7 +163,7 @@ public:
|
||||
typedef typename HashMap<Key, Value>::Iterator Iterator;
|
||||
|
||||
SynchronizedHashMap() : Locker("synchronized hash map") {}
|
||||
~SynchronizedHashMap() { Lock(); }
|
||||
~SynchronizedHashMap() { Locker::Lock(); }
|
||||
|
||||
status_t InitCheck() const
|
||||
{
|
||||
@@ -186,6 +186,14 @@ public:
|
||||
return fMap.Remove(key);
|
||||
}
|
||||
|
||||
Value Remove(Iterator& it)
|
||||
{
|
||||
MapLocker locker(this);
|
||||
if (!locker.IsLocked())
|
||||
return Value();
|
||||
return fMap.Remove(it);
|
||||
}
|
||||
|
||||
void Clear()
|
||||
{
|
||||
MapLocker locker(this);
|
||||
|
||||
Reference in New Issue
Block a user