summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-15 02:50:30 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-15 02:50:30 +0200
commitb99a5da65b76ce16e40fe05feb786aac11931904 (patch)
treec4e59e9fe73417ac931b99b468004219286b2560 /src/core/hle/kernel/thread.h
parentchanged primary thread priority to 0x30 - this is typical, not 0x31 (diff)
downloadyuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar
yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.gz
yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.bz2
yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.lz
yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.xz
yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.zst
yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.zip
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 1731248cc..05468fb2e 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -30,6 +30,10 @@ class Thread;
Thread* __KernelCreateThread(UID& id, UID module_id, const char* name, u32 priority, u32 entrypoint,
u32 arg, u32 stack_top, u32 processor_id, int stack_size=0x4000);
+
+UID __KernelCreateThread(UID module_id, const char* name, u32 priority, u32 entry_point, u32 arg,
+ u32 stack_top, u32 processor_id, int stack_size=0x4000);
+
void __KernelResetThread(Thread *t, int lowest_priority);
void __KernelChangeReadyState(Thread *thread, UID thread_id, bool ready);
void __KernelChangeReadyState(UID thread_id, bool ready);
@@ -37,7 +41,9 @@ Thread* __KernelNextThread();
void __KernelSaveContext(ThreadContext *ctx);
void __KernelLoadContext(ThreadContext *ctx);
void __KernelSwitchContext(Thread *target, const char *reason);
+bool __KernelSwitchToThread(UID thread_id, const char *reason);
UID __KernelSetupRootThread(UID module_id, int arg, int prio, int stack_size=0x4000);
+int __KernelRotateThreadReadyQueue(int priority=0);
void __KernelThreadingInit();
void __KernelThreadingShutdown();