mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 01:07:46 +00:00
kernel: fix single-core preemption points
This commit is contained in:
parent
61b26b386d
commit
21e2063d7d
6 changed files with 27 additions and 39 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
|
||||
void SetInterruptTaskRunnable();
|
||||
void RequestScheduleOnInterrupt();
|
||||
void PreemptSingleCore();
|
||||
|
||||
u64 GetIdleCount() {
|
||||
return m_state.idle_count;
|
||||
|
@ -62,10 +63,6 @@ public:
|
|||
return m_current_thread.load() == m_idle_thread;
|
||||
}
|
||||
|
||||
std::shared_ptr<Common::Fiber> GetSwitchFiber() {
|
||||
return m_switch_fiber;
|
||||
}
|
||||
|
||||
KThread* GetPreviousThread() const {
|
||||
return m_state.prev_thread;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue