Commit 27c5bab2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

SWMRLock: Awake all potential readers once done with writing

parent ee7f3d47
......@@ -80,7 +80,7 @@ public:
std::unique_lock<compat::Mutex> lock( m_lock );
m_writing = false;
if ( m_nbReaderWaiting > 0 || m_nbWriterWaiting > 0 )
m_writeDoneCond.notify_one();
m_writeDoneCond.notify_all();
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment