mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 04:08:00 -05:00
cpu_manager: properly check idle on return from preemption
This commit is contained in:
@ -55,6 +55,11 @@ public:
|
||||
return idle_thread;
|
||||
}
|
||||
|
||||
/// Returns true if the scheduler is idle
|
||||
[[nodiscard]] bool IsIdle() const {
|
||||
return GetSchedulerCurrentThread() == idle_thread;
|
||||
}
|
||||
|
||||
/// Gets the timestamp for the last context switch in ticks.
|
||||
[[nodiscard]] u64 GetLastContextSwitchTicks() const;
|
||||
|
||||
|
Reference in New Issue
Block a user