core: De-globalize HLE lock (#7212)

This commit is contained in:
GPUCode
2023-11-29 00:15:27 +02:00
committed by GitHub
parent 83b329f6e1
commit 6ec079ede8
18 changed files with 66 additions and 92 deletions

View File

@@ -395,7 +395,8 @@ DSP_DSP::DSP_DSP(Core::System& system)
semaphore_event->SetHLENotifier(
[this]() { this->system.DSP().SetSemaphore(preset_semaphore); });
system.DSP().SetInterruptHandler([dsp_ref = this](InterruptType type, DspPipe pipe) {
system.DSP().SetInterruptHandler([dsp_ref = this, &system](InterruptType type, DspPipe pipe) {
std::scoped_lock lock{system.Kernel().GetHLELock()};
if (dsp_ref) {
dsp_ref->SignalInterrupt(type, pipe);
}