Sas: Minor clenaup.

This commit is contained in:
Unknown W. Brackets 2021-02-06 18:37:05 -08:00
parent b52c432f06
commit c99de6409d
2 changed files with 1 additions and 5 deletions

View file

@ -109,10 +109,9 @@ int __SasThread() {
if (sasThreadState == SasThreadState::QUEUED) {
sas->Mix(sasThreadParams.outAddr, sasThreadParams.inAddr, sasThreadParams.leftVol, sasThreadParams.rightVol);
sasDoneMutex.lock();
std::lock_guard<std::mutex> doneGuard(sasDoneMutex);
sasThreadState = SasThreadState::READY;
sasDone.notify_one();
sasDoneMutex.unlock();
}
}
return 0;