diff options
| author | 2014-05-14 20:50:30 -0400 | |
|---|---|---|
| committer | 2014-05-14 20:50:30 -0400 | |
| commit | b99a5da65b76ce16e40fe05feb786aac11931904 (patch) | |
| tree | c4e59e9fe73417ac931b99b468004219286b2560 /src/core/hle/kernel/thread.h | |
| parent | changed primary thread priority to 0x30 - this is typical, not 0x31 (diff) | |
| download | yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.gz yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.tar.xz yuzu-b99a5da65b76ce16e40fe05feb786aac11931904.zip | |
- added helper function for __KernelCreateThread
- added __KernelSwitchToThread for enabling a thread
- added __KernelRotateThreadReadyQueue
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 6 |
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; | |||
| 30 | 30 | ||
| 31 | Thread* __KernelCreateThread(UID& id, UID module_id, const char* name, u32 priority, u32 entrypoint, | 31 | Thread* __KernelCreateThread(UID& id, UID module_id, const char* name, u32 priority, u32 entrypoint, |
| 32 | u32 arg, u32 stack_top, u32 processor_id, int stack_size=0x4000); | 32 | u32 arg, u32 stack_top, u32 processor_id, int stack_size=0x4000); |
| 33 | |||
| 34 | UID __KernelCreateThread(UID module_id, const char* name, u32 priority, u32 entry_point, u32 arg, | ||
| 35 | u32 stack_top, u32 processor_id, int stack_size=0x4000); | ||
| 36 | |||
| 33 | void __KernelResetThread(Thread *t, int lowest_priority); | 37 | void __KernelResetThread(Thread *t, int lowest_priority); |
| 34 | void __KernelChangeReadyState(Thread *thread, UID thread_id, bool ready); | 38 | void __KernelChangeReadyState(Thread *thread, UID thread_id, bool ready); |
| 35 | void __KernelChangeReadyState(UID thread_id, bool ready); | 39 | void __KernelChangeReadyState(UID thread_id, bool ready); |
| @@ -37,7 +41,9 @@ Thread* __KernelNextThread(); | |||
| 37 | void __KernelSaveContext(ThreadContext *ctx); | 41 | void __KernelSaveContext(ThreadContext *ctx); |
| 38 | void __KernelLoadContext(ThreadContext *ctx); | 42 | void __KernelLoadContext(ThreadContext *ctx); |
| 39 | void __KernelSwitchContext(Thread *target, const char *reason); | 43 | void __KernelSwitchContext(Thread *target, const char *reason); |
| 44 | bool __KernelSwitchToThread(UID thread_id, const char *reason); | ||
| 40 | UID __KernelSetupRootThread(UID module_id, int arg, int prio, int stack_size=0x4000); | 45 | UID __KernelSetupRootThread(UID module_id, int arg, int prio, int stack_size=0x4000); |
| 46 | int __KernelRotateThreadReadyQueue(int priority=0); | ||
| 41 | 47 | ||
| 42 | void __KernelThreadingInit(); | 48 | void __KernelThreadingInit(); |
| 43 | void __KernelThreadingShutdown(); | 49 | void __KernelThreadingShutdown(); |