diff options
| author | 2014-05-17 00:56:00 -0400 | |
|---|---|---|
| committer | 2014-05-17 00:56:00 -0400 | |
| commit | 14ae026386cf3f984d60401e2104165c3ca3266b (patch) | |
| tree | ccd112ad636e166799d321a8072582a4e66150c1 /src/core/hle/kernel/thread.h | |
| parent | added MIN, MAX, and CLAMP macros to common_funcs (diff) | |
| download | yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.gz yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.tar.xz yuzu-14ae026386cf3f984d60401e2104165c3ca3266b.zip | |
- added enum ThreadProcessorId
- reorganized some kernel thread functions
- added placeholder __KernelWaitThread_Synchronization function
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 19 |
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 @@ | |||
| 9 | 9 | ||
| 10 | class Thread; | 10 | class Thread; |
| 11 | 11 | ||
| 12 | /// Creates a new thread | 12 | enum ThreadPriority { |
| 13 | Thread *__KernelCreateThread(Handle &handle, const char *name, u32 entry_point, s32 priority, | 13 | THREADPRIO_HIGHEST = 0, |
| 14 | THREADPRIO_DEFAULT = 16, | ||
| 15 | THREADPRIO_LOWEST = 31, | ||
| 16 | }; | ||
| 17 | |||
| 18 | enum ThreadProcessorId { | ||
| 19 | THREADPROCESSORID_0 = 0xFFFFFFFE, | ||
| 20 | THREADPROCESSORID_1 = 0xFFFFFFFD, | ||
| 21 | THREADPROCESSORID_ALL = 0xFFFFFFFC, | ||
| 22 | }; | ||
| 23 | |||
| 24 | /// Creates a new thread - wrapper for external user | ||
| 25 | Handle __KernelCreateThread(const char *name, u32 entry_point, s32 priority, | ||
| 14 | s32 processor_id, u32 stack_top, int stack_size=KERNEL_DEFAULT_STACK_SIZE); | 26 | s32 processor_id, u32 stack_top, int stack_size=KERNEL_DEFAULT_STACK_SIZE); |
| 15 | 27 | ||
| 16 | /// Sets up the primary application thread | 28 | /// Sets up the primary application thread |
| @@ -18,3 +30,6 @@ Handle __KernelSetupMainThread(s32 priority, int stack_size=KERNEL_DEFAULT_STACK | |||
| 18 | 30 | ||
| 19 | void __KernelThreadingInit(); | 31 | void __KernelThreadingInit(); |
| 20 | void __KernelThreadingShutdown(); | 32 | void __KernelThreadingShutdown(); |
| 33 | |||
| 34 | /// Wait thread - on WaitSynchronization | ||
| 35 | void __KernelWaitThread_Synchronization(); | ||