summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ConnectionMap.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-02-27 22:27:11 +0000
committerAlan Conway <aconway@apache.org>2009-02-27 22:27:11 +0000
commit61c5a2e483b4df2251d672a7a429b99438eb2981 (patch)
treef5dda90696092448d5fc43deb4270472e3621d44 /cpp/src/qpid/cluster/ConnectionMap.h
parent3f0b39bb415675e98d681b5d814dafa8bc601b32 (diff)
downloadqpid-python-61c5a2e483b4df2251d672a7a429b99438eb2981.tar.gz
Add lock to cluster::ConnectionMap, make it thread safe.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@748723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ConnectionMap.h')
-rw-r--r--cpp/src/qpid/cluster/ConnectionMap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/ConnectionMap.h b/cpp/src/qpid/cluster/ConnectionMap.h
index f8aa663339..c5ba18af0c 100644
--- a/cpp/src/qpid/cluster/ConnectionMap.h
+++ b/cpp/src/qpid/cluster/ConnectionMap.h
@@ -77,6 +77,7 @@ class ConnectionMap {
private:
typedef std::map<ConnectionId, ConnectionPtr> Map;
+ mutable sys::Mutex lock;
Cluster& cluster;
NoOpConnectionOutputHandler shadowOut;
Map map;