summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index fe5398d56..c48b21aba 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -30,12 +30,12 @@ enum ThreadPriority : u32 {
30}; 30};
31 31
32enum ThreadProcessorId : s32 { 32enum ThreadProcessorId : s32 {
33 THREADPROCESSORID_DEFAULT = -2, ///< Run thread on default core specified by exheader 33 THREADPROCESSORID_IDEAL = -2, ///< Run thread on the ideal core specified by the process.
34 THREADPROCESSORID_0 = 0, ///< Run thread on core 0 34 THREADPROCESSORID_0 = 0, ///< Run thread on core 0
35 THREADPROCESSORID_1 = 1, ///< Run thread on core 1 35 THREADPROCESSORID_1 = 1, ///< Run thread on core 1
36 THREADPROCESSORID_2 = 2, ///< Run thread on core 2 36 THREADPROCESSORID_2 = 2, ///< Run thread on core 2
37 THREADPROCESSORID_3 = 3, ///< Run thread on core 3 37 THREADPROCESSORID_3 = 3, ///< Run thread on core 3
38 THREADPROCESSORID_MAX = 4, ///< Processor ID must be less than this 38 THREADPROCESSORID_MAX = 4, ///< Processor ID must be less than this
39 39
40 /// Allowed CPU mask 40 /// Allowed CPU mask
41 THREADPROCESSORID_DEFAULT_MASK = (1 << THREADPROCESSORID_0) | (1 << THREADPROCESSORID_1) | 41 THREADPROCESSORID_DEFAULT_MASK = (1 << THREADPROCESSORID_0) | (1 << THREADPROCESSORID_1) |
@@ -456,17 +456,6 @@ private:
456}; 456};
457 457
458/** 458/**
459 * Sets up the primary application thread
460 * @param kernel The kernel instance to create the main thread under.
461 * @param entry_point The address at which the thread should start execution
462 * @param priority The priority to give the main thread
463 * @param owner_process The parent process for the main thread
464 * @return A shared pointer to the main thread
465 */
466SharedPtr<Thread> SetupMainThread(KernelCore& kernel, VAddr entry_point, u32 priority,
467 Process& owner_process);
468
469/**
470 * Gets the current thread 459 * Gets the current thread
471 */ 460 */
472Thread* GetCurrentThread(); 461Thread* GetCurrentThread();