output/Control: use class ScopeUnlock()
This commit is contained in:
@@ -111,9 +111,8 @@ void
|
|||||||
AudioOutputControl::WaitForCommand() noexcept
|
AudioOutputControl::WaitForCommand() noexcept
|
||||||
{
|
{
|
||||||
while (!IsCommandFinished()) {
|
while (!IsCommandFinished()) {
|
||||||
mutex.unlock();
|
const ScopeUnlock unlock(mutex);
|
||||||
audio_output_client_notify.Wait();
|
audio_output_client_notify.Wait();
|
||||||
mutex.lock();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user