hle: kernel: Add a flag for indicating that the kernel is currently shutting down.
This commit is contained in:
parent
2c49a65d2b
commit
abbea575cf
6 changed files with 49 additions and 0 deletions
src/core/hle/kernel
|
@ -1089,6 +1089,11 @@ s32 GetCurrentCoreId(KernelCore& kernel) {
|
|||
}
|
||||
|
||||
KScopedDisableDispatch::~KScopedDisableDispatch() {
|
||||
// If we are shutting down the kernel, none of this is relevant anymore.
|
||||
if (kernel.IsShuttingDown()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetCurrentThread(kernel).GetDisableDispatchCount() <= 1) {
|
||||
auto scheduler = kernel.CurrentScheduler();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue