summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ConnectionMap.h
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-01-26 23:17:29 +0000
committerTed Ross <tross@apache.org>2009-01-26 23:17:29 +0000
commitd40d874132bc5011a76bd883fdf9d2507a2f8149 (patch)
treec83d42ac2c118d3a4f066b10ed655322140704b3 /cpp/src/qpid/cluster/ConnectionMap.h
parent0f7d1da9baa6906d2481bc05063ae7f8840c6aee (diff)
downloadqpid-python-d40d874132bc5011a76bd883fdf9d2507a2f8149.tar.gz
Added qpid-cluster utility plus model changes to support it.
Fixed a segfault during cluster member shutdown. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@737935 13f79535-47bb-0310-9956-ffa450edef68
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;