Skip to content

Commit

Permalink
fix locking of the useless_lock in LocklessRingBuffer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
he29-net authored and JohannesLorenz committed Jan 5, 2020
1 parent abf3530 commit ef99c53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/LocklessRingBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class LocklessRingBufferReader : public ringbuffer_reader_t<T>
void waitForData()
{
QMutex useless_lock;
useless_lock.lock();
m_notifier->wait(&useless_lock);
useless_lock.unlock();
}
Expand Down

0 comments on commit ef99c53

Please sign in to comment.