mirror of
https://github.com/decaf-emu/decaf-emu.git
synced 2026-10-11 16:18:14 +00:00
Fix cores not waking on interrupt.
This commit is contained in:
@@ -47,7 +47,7 @@ Processor::start()
|
||||
}
|
||||
|
||||
void
|
||||
Processor::wakeAll()
|
||||
Processor::wakeAllCores()
|
||||
{
|
||||
mCondition.notify_all();
|
||||
}
|
||||
@@ -322,6 +322,7 @@ Processor::timerEntryPoint()
|
||||
if (core->nextInterrupt <= now) {
|
||||
core->interrupt = true;
|
||||
core->nextInterrupt = std::chrono::time_point<std::chrono::system_clock>::max();
|
||||
wakeAllCores();
|
||||
} else if (core->nextInterrupt < next) {
|
||||
next = core->nextInterrupt;
|
||||
timedWait = true;
|
||||
|
||||
Reference in New Issue
Block a user