Skip to content
Permalink
Browse files

MurmurGRPCImpl.h: declare variable for QMutexLocker in RPCSingleStrea…

…mCall 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.
  • Loading branch information...
mkrautz committed Jul 24, 2017
1 parent ac9fa64 commit daca82cc3663c99c38da2e4690c556bb63268d60
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/murmur/MurmurGRPCImpl.h
@@ -206,7 +206,7 @@ class RPCSingleStreamCall : public RPCCall {
}

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 @@ class RPCSingleStreamCall : public RPCCall {
}

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);

0 comments on commit daca82c

Please sign in to comment.
You can’t perform that action at this time.