diff options
| author | 2017-09-29 14:58:42 -0400 | |
|---|---|---|
| committer | 2017-09-29 14:58:42 -0400 | |
| commit | b07af7dda822898e9c8f231c5ddcd1741d93dbef (patch) | |
| tree | d41c9221d6065b8cf9e6a2405565b675a9c83c51 /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #2907 from Subv/warnings3 (diff) | |
| parent | Loaders: Don't automatically set the current process every time we load an ap... (diff) | |
| download | yuzu-b07af7dda822898e9c8f231c5ddcd1741d93dbef.tar.gz yuzu-b07af7dda822898e9c8f231c5ddcd1741d93dbef.tar.xz yuzu-b07af7dda822898e9c8f231c5ddcd1741d93dbef.zip | |
Merge pull request #2961 from Subv/load_titles
Loaders: Don't automatically set the current process every time we load an application.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 6a3566f15..ddc0d15c5 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -56,10 +56,12 @@ public: | |||
| 56 | * @param arg User data to pass to the thread | 56 | * @param arg User data to pass to the thread |
| 57 | * @param processor_id The ID(s) of the processors on which the thread is desired to be run | 57 | * @param processor_id The ID(s) of the processors on which the thread is desired to be run |
| 58 | * @param stack_top The address of the thread's stack top | 58 | * @param stack_top The address of the thread's stack top |
| 59 | * @param owner_process The parent process for the thread | ||
| 59 | * @return A shared pointer to the newly created thread | 60 | * @return A shared pointer to the newly created thread |
| 60 | */ | 61 | */ |
| 61 | static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, u32 priority, | 62 | static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, u32 priority, |
| 62 | u32 arg, s32 processor_id, VAddr stack_top); | 63 | u32 arg, s32 processor_id, VAddr stack_top, |
| 64 | SharedPtr<Process> owner_process); | ||
| 63 | 65 | ||
| 64 | std::string GetName() const override { | 66 | std::string GetName() const override { |
| 65 | return name; | 67 | return name; |
| @@ -116,9 +118,9 @@ public: | |||
| 116 | void ResumeFromWait(); | 118 | void ResumeFromWait(); |
| 117 | 119 | ||
| 118 | /** | 120 | /** |
| 119 | * Schedules an event to wake up the specified thread after the specified delay | 121 | * Schedules an event to wake up the specified thread after the specified delay |
| 120 | * @param nanoseconds The time this thread will be allowed to sleep for | 122 | * @param nanoseconds The time this thread will be allowed to sleep for |
| 121 | */ | 123 | */ |
| 122 | void WakeAfterDelay(s64 nanoseconds); | 124 | void WakeAfterDelay(s64 nanoseconds); |
| 123 | 125 | ||
| 124 | /** | 126 | /** |
| @@ -214,9 +216,10 @@ private: | |||
| 214 | * Sets up the primary application thread | 216 | * Sets up the primary application thread |
| 215 | * @param entry_point The address at which the thread should start execution | 217 | * @param entry_point The address at which the thread should start execution |
| 216 | * @param priority The priority to give the main thread | 218 | * @param priority The priority to give the main thread |
| 219 | * @param owner_process The parent process for the main thread | ||
| 217 | * @return A shared pointer to the main thread | 220 | * @return A shared pointer to the main thread |
| 218 | */ | 221 | */ |
| 219 | SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority); | 222 | SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority, SharedPtr<Process> owner_process); |
| 220 | 223 | ||
| 221 | /** | 224 | /** |
| 222 | * Returns whether there are any threads that are ready to run. | 225 | * Returns whether there are any threads that are ready to run. |
| @@ -276,4 +279,4 @@ void ThreadingShutdown(); | |||
| 276 | */ | 279 | */ |
| 277 | const std::vector<SharedPtr<Thread>>& GetThreadList(); | 280 | const std::vector<SharedPtr<Thread>>& GetThreadList(); |
| 278 | 281 | ||
| 279 | } // namespace | 282 | } // namespace Kernel |