hle: kernel: Add a flag for indicating that the kernel is currently shutting down.
This commit is contained in:
parent
975a4f786b
commit
58da4d5a6e
6 changed files with 49 additions and 0 deletions
|
@ -794,6 +794,10 @@ public:
|
|||
class KScopedDisableDispatch {
|
||||
public:
|
||||
[[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
|
||||
// If we are shutting down the kernel, none of this is relevant anymore.
|
||||
if (kernel.IsShuttingDown()) {
|
||||
return;
|
||||
}
|
||||
GetCurrentThread(kernel).DisableDispatch();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue