aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-13 23:58:41 -0500
committerLioncash <mathew1800@gmail.com>2018-11-14 00:02:42 -0500
commitf9db75fe40218abc01a48c478df315628f4aa955 (patch)
treefe2a564e3a48b2d83f56104c80620b3b1b858c5c /src/core/hle/kernel/thread.h
parent65bd03d74cbf4d8072239480404c6db83d41b27c (diff)
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.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 4a6e11239..d384d50db 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -374,6 +374,8 @@ private:
explicit Thread(KernelCore& kernel);
~Thread() override;
+ void ChangeScheduler();
+
Core::ARM_Interface::ThreadContext context{};
u32 thread_id = 0;