summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-17 06:56:00 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-17 06:56:00 +0200
commit14ae026386cf3f984d60401e2104165c3ca3266b (patch)
treeccd112ad636e166799d321a8072582a4e66150c1 /src/core/hle/kernel/thread.h
parentadded MIN, MAX, and CLAMP macros to common_funcs (diff)
downloadyuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar
yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.gz
yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.bz2
yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.lz
yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.xz
yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.zst
yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.zip
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index add6107d7..8138be26f 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -9,8 +9,20 @@
class Thread;
-/// Creates a new thread
-Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point, s32 priority,
+enum ThreadPriority {
+ THREADPRIO_HIGHEST = 0,
+ THREADPRIO_DEFAULT = 16,
+ THREADPRIO_LOWEST = 31,
+};
+
+enum ThreadProcessorId {
+ THREADPROCESSORID_0 = 0xFFFFFFFE,
+ THREADPROCESSORID_1 = 0xFFFFFFFD,
+ THREADPROCESSORID_ALL = 0xFFFFFFFC,
+};
+
+/// Creates a new thread - wrapper for external user
+Handle __KernelCreateThread(const char *name, u32 entry_point, s32 priority,
s32 processor_id, u32 stack_top, int stack_size=KERNEL_DEFAULT_STACK_SIZE);
/// Sets up the primary application thread
@@ -18,3 +30,6 @@ Handle __KernelSetupMainThread(s32 priority, int stack_size=KERNEL_DEFAULT_STACK
void __KernelThreadingInit();
void __KernelThreadingShutdown();
+
+/// Wait thread - on WaitSynchronization
+void __KernelWaitThread_Synchronization();