kernel/thread: Deduplicate scheduler switching code
The code in both places was the same verbatim, so we can extract it to a function to deduplicate the logic.
This commit is contained in:
parent
65bd03d74c
commit
f9db75fe40
2 changed files with 13 additions and 37 deletions
|
@ -374,6 +374,8 @@ private:
|
|||
explicit Thread(KernelCore& kernel);
|
||||
~Thread() override;
|
||||
|
||||
void ChangeScheduler();
|
||||
|
||||
Core::ARM_Interface::ThreadContext context{};
|
||||
|
||||
u32 thread_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue