aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Matuszkiewicz <kmatuszkiewicz@affinegy.com>2017-08-11 10:15:45 +0200
committerKarol Matuszkiewicz <kmatuszkiewicz@affinegy.com>2017-08-11 16:27:58 +0200
commitf11a6a9f7659710a491bde245d5d5c9cc8582df0 (patch)
tree7bed5e5f7c23d6dd756ce4f5ade73859211b503e
parente7960d79cab943b2c3804eb64e580bf22a7865e6 (diff)
ASACORE-3065 UDPTransport: PushBytes acquires the same lock twice
Removed redundant locking and unlocking. Change-Id: Ia4ab9818238199e6ff4878ea8f2a0edb8c599e18 Signed-off-by: Karol Matuszkiewicz <kmatuszkiewicz@affinegy.com>
-rw-r--r--alljoyn_core/router/UDPTransport.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/alljoyn_core/router/UDPTransport.cc b/alljoyn_core/router/UDPTransport.cc
index 34cfe6a..a17402f 100644
--- a/alljoyn_core/router/UDPTransport.cc
+++ b/alljoyn_core/router/UDPTransport.cc
@@ -2655,12 +2655,11 @@ class ArdpStream : public qcc::Stream {
* the reference to it.
*/
numSent = numBytes;
- m_transport->m_cbLock.Lock(MUTEX_CONTEXT);
++m_sendsOutstanding;
+ m_transport->m_cbLock.AssertOwnedByCurrentThread();
#if SENT_SANITY
m_sentSet.insert(buffer);
#endif
- m_transport->m_cbLock.Unlock(MUTEX_CONTEXT);
buffer = NULL;
done = true;
continue;