summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ConnectionMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/cluster/ConnectionMap.h')
-rw-r--r--cpp/src/qpid/cluster/ConnectionMap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/ConnectionMap.h b/cpp/src/qpid/cluster/ConnectionMap.h
index f1862e2e75..c355074e75 100644
--- a/cpp/src/qpid/cluster/ConnectionMap.h
+++ b/cpp/src/qpid/cluster/ConnectionMap.h
@@ -75,6 +75,11 @@ class ConnectionMap
}
}
+ void clear() {
+ ScopedLock l(lock);
+ map.clear();
+ }
+
size_t size() const { return map.size(); }
private:
typedef std::map<ConnectionId, ConnectionPtr> Map;