diff options
| author | 2014-05-20 19:37:46 -0400 | |
|---|---|---|
| committer | 2014-05-20 19:37:46 -0400 | |
| commit | 75c6d2a8fa3547946227094af6c179e5ccba0e1e (patch) | |
| tree | 6199164fdc1745d6b12333b0b2efc269e8c7ee5d /src/core/hle/kernel/thread.h | |
| parent | ARM_Interpreter/ARM_Interface: Fixed member variable naming to be consistent ... (diff) | |
| download | yuzu-75c6d2a8fa3547946227094af6c179e5ccba0e1e.tar.gz yuzu-75c6d2a8fa3547946227094af6c179e5ccba0e1e.tar.xz yuzu-75c6d2a8fa3547946227094af6c179e5ccba0e1e.zip | |
thread: moved threading calls to the Kernel namespace
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 72e9a416d..2c0199273 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -7,8 +7,6 @@ | |||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hle/kernel/kernel.h" | 8 | #include "core/hle/kernel/kernel.h" |
| 9 | 9 | ||
| 10 | class Thread; | ||
| 11 | |||
| 12 | enum ThreadPriority { | 10 | enum ThreadPriority { |
| 13 | THREADPRIO_HIGHEST = 0, | 11 | THREADPRIO_HIGHEST = 0, |
| 14 | THREADPRIO_DEFAULT = 16, | 12 | THREADPRIO_DEFAULT = 16, |
| @@ -21,18 +19,28 @@ enum ThreadProcessorId { | |||
| 21 | THREADPROCESSORID_ALL = 0xFFFFFFFC, | 19 | THREADPROCESSORID_ALL = 0xFFFFFFFC, |
| 22 | }; | 20 | }; |
| 23 | 21 | ||
| 22 | namespace Kernel { | ||
| 23 | |||
| 24 | /// Creates a new thread - wrapper for external user | 24 | /// Creates a new thread - wrapper for external user |
| 25 | Handle __KernelCreateThread(const char* name, u32 entry_point, s32 priority, | 25 | Handle CreateThread(const char* name, u32 entry_point, s32 priority, s32 processor_id, |
| 26 | s32 processor_id, u32 stack_top, int stack_size=Kernel::DEFAULT_STACK_SIZE); | 26 | u32 stack_top, int stack_size=Kernel::DEFAULT_STACK_SIZE); |
| 27 | 27 | ||
| 28 | /// Sets up the primary application thread | 28 | /// Sets up the primary application thread |
| 29 | Handle __KernelSetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE); | 29 | Handle SetupMainThread(s32 priority, int stack_size=Kernel::DEFAULT_STACK_SIZE); |
| 30 | 30 | ||
| 31 | /// Reschedules to the next available thread (call after current thread is suspended) | 31 | /// Reschedules to the next available thread (call after current thread is suspended) |
| 32 | void __KernelReschedule(const char* reason); | 32 | void Reschedule(const char* reason); |
| 33 | 33 | ||
| 34 | void __KernelThreadingInit(); | 34 | /// Gets the current thread |
| 35 | void __KernelThreadingShutdown(); | 35 | Handle GetCurrentThread(); |
| 36 | 36 | ||
| 37 | /// Put current thread in a wait state - on WaitSynchronization | 37 | /// Put current thread in a wait state - on WaitSynchronization |
| 38 | void __KernelWaitThread_Synchronization(); | 38 | void WaitThread_Synchronization(); |
| 39 | |||
| 40 | /// Initialize threading | ||
| 41 | void ThreadingInit(); | ||
| 42 | |||
| 43 | /// Shutdown threading | ||
| 44 | void ThreadingShutdown(); | ||
| 45 | |||
| 46 | } // namespace | ||