core: hle: kernel: Ensure idle threads are closed before destroying scheduler.

This commit is contained in:
bunnei
2021-08-06 22:58:46 -07:00
parent 68eee94875
commit 2b9560428b
3 changed files with 22 additions and 24 deletions

View File

@ -33,6 +33,8 @@ public:
explicit KScheduler(Core::System& system_, s32 core_id_);
~KScheduler();
void Finalize();
/// Reschedules to the next available thread (call after current thread is suspended)
void RescheduleCurrentCore();