Skip to content

Commit ef99c53

Browse files
he29-netJohannesLorenz
authored andcommitted
fix locking of the useless_lock in LocklessRingBuffer.h
1 parent abf3530 commit ef99c53

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/LocklessRingBuffer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class LocklessRingBufferReader : public ringbuffer_reader_t<T>
122122
void waitForData()
123123
{
124124
QMutex useless_lock;
125+
useless_lock.lock();
125126
m_notifier->wait(&useless_lock);
126127
useless_lock.unlock();
127128
}

0 commit comments

Comments
 (0)