diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2017-07-24 11:49:18 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2017-07-24 11:49:18 +0300 |
commit | daca82cc3663c99c38da2e4690c556bb63268d60 (patch) | |
tree | 81cb019fab9bb85b6bbe8027f2917f9766250b4a /src/murmur/MurmurGRPCImpl.h | |
parent | ac9fa6480f87a761748497dd642e0f2231817a2a (diff) |
MurmurGRPCImpl.h: declare variable for QMutexLocker in RPCSingleStreamCall class.
This existing syntax doesn't build on my Ubuntu 14.04 LTS test machine, and
it seems odd to me.
Change the syntax to something more conventional.
Diffstat (limited to 'src/murmur/MurmurGRPCImpl.h')
-rw-r--r-- | src/murmur/MurmurGRPCImpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/murmur/MurmurGRPCImpl.h b/src/murmur/MurmurGRPCImpl.h index c8cec1659..29de6c3fd 100644 --- a/src/murmur/MurmurGRPCImpl.h +++ b/src/murmur/MurmurGRPCImpl.h @@ -206,7 +206,7 @@ public: } void write(const OutType &msg, void *tag) { - QMutexLocker(&RPCSingleStreamCall::m_writeLock); + QMutexLocker l(&m_writeLock); if (m_writeQueue.size() > 0) { m_writeQueue.enqueue(qMakePair(msg, tag)); } else { @@ -222,7 +222,7 @@ private: } void writeCallback(bool ok) { - QMutexLocker(&RPCSingleStreamCall::m_writeLock); + QMutexLocker l(&m_writeLock); auto processed = m_writeQueue.dequeue(); if (processed.second) { auto cb = static_cast< ::boost::function<void(bool)> *>(processed.second); |