Sas: Minor clenaup.
This commit is contained in:
parent
b52c432f06
commit
c99de6409d
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue