diff options
| author | Alan Conway <aconway@apache.org> | 2009-05-27 16:39:15 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-05-27 16:39:15 +0000 |
| commit | b6780b5b42b168c62a3380e5fc15cc39fc374615 (patch) | |
| tree | 1ba66ece932dbbe371a3e840734d8cb218ec7f99 /cpp/src/qpid/cluster/Decoder.cpp | |
| parent | ba7280d1f6dc6a59021bfd86f20aa4382c3977a7 (diff) | |
| download | qpid-python-b6780b5b42b168c62a3380e5fc15cc39fc374615.tar.gz | |
Added missing locks in cluster code.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@779235 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Decoder.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/Decoder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Decoder.cpp b/cpp/src/qpid/cluster/Decoder.cpp index 6f65b3852a..a57edb3b7f 100644 --- a/cpp/src/qpid/cluster/Decoder.cpp +++ b/cpp/src/qpid/cluster/Decoder.cpp @@ -57,4 +57,9 @@ void Decoder::erase(const ConnectionId& c) { map.erase(c); } +framing::FrameDecoder& Decoder::get(const ConnectionId& c) { + sys::Mutex::ScopedLock l(lock); + return map[c]; +} + }} // namespace qpid::cluster |
