Closes #5050: Add Mixer threading comments (#5069)

[ci skip]
This commit is contained in:
Johannes Lorenz
2019-07-11 18:22:41 +02:00
committed by GitHub
parent d766b87688
commit 59e186d208
2 changed files with 5 additions and 0 deletions

View File

@@ -831,7 +831,9 @@ void Mixer::runChangesInModel()
if( m_changesSignal )
{
m_waitChangesMutex.lock();
// allow changes in the model from other threads ...
m_changesRequestCondition.wakeOne();
// ... and wait until they are done
m_changesMixerCondition.wait( &m_waitChangesMutex );
m_waitChangesMutex.unlock();
}