diff options
| author | 2015-01-30 23:07:54 -0200 | |
|---|---|---|
| committer | 2015-02-02 15:37:01 -0200 | |
| commit | 664c79ff47054df845096e7e29d5cc437dfec2a2 (patch) | |
| tree | 1ebd682a7e75c964f2ac98f2dffbc5adba037442 /src/core/hle/kernel/thread.h | |
| parent | Service: Store function names as const char* instead of std::string (diff) | |
| download | yuzu-664c79ff47054df845096e7e29d5cc437dfec2a2.tar.gz yuzu-664c79ff47054df845096e7e29d5cc437dfec2a2.tar.xz yuzu-664c79ff47054df845096e7e29d5cc437dfec2a2.zip | |
Thread: Modernize two functions that slipped through previous rebases
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index d6299364a..cba074e07 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -78,6 +78,12 @@ public: | |||
| 78 | void ResumeFromWait(); | 78 | void ResumeFromWait(); |
| 79 | 79 | ||
| 80 | /** | 80 | /** |
| 81 | * Schedules an event to wake up the specified thread after the specified delay. | ||
| 82 | * @param nanoseconds The time this thread will be allowed to sleep for. | ||
| 83 | */ | ||
| 84 | void WakeAfterDelay(s64 nanoseconds); | ||
| 85 | |||
| 86 | /** | ||
| 81 | * Sets the result after the thread awakens (from either WaitSynchronization SVC) | 87 | * Sets the result after the thread awakens (from either WaitSynchronization SVC) |
| 82 | * @param result Value to set to the returned result | 88 | * @param result Value to set to the returned result |
| 83 | */ | 89 | */ |
| @@ -151,19 +157,12 @@ void WaitCurrentThread_WaitSynchronization(SharedPtr<WaitObject> wait_object, bo | |||
| 151 | void WaitCurrentThread_ArbitrateAddress(VAddr wait_address); | 157 | void WaitCurrentThread_ArbitrateAddress(VAddr wait_address); |
| 152 | 158 | ||
| 153 | /** | 159 | /** |
| 154 | * Schedules an event to wake up the specified thread after the specified delay. | ||
| 155 | * @param handle The thread handle. | ||
| 156 | * @param nanoseconds The time this thread will be allowed to sleep for. | ||
| 157 | */ | ||
| 158 | void WakeThreadAfterDelay(Thread* thread, s64 nanoseconds); | ||
| 159 | |||
| 160 | /** | ||
| 161 | * Sets up the idle thread, this is a thread that is intended to never execute instructions, | 160 | * Sets up the idle thread, this is a thread that is intended to never execute instructions, |
| 162 | * only to advance the timing. It is scheduled when there are no other ready threads in the thread queue | 161 | * only to advance the timing. It is scheduled when there are no other ready threads in the thread queue |
| 163 | * and will try to yield on every call. | 162 | * and will try to yield on every call. |
| 164 | * @returns The handle of the idle thread | 163 | * @returns The handle of the idle thread |
| 165 | */ | 164 | */ |
| 166 | Handle SetupIdleThread(); | 165 | SharedPtr<Thread> SetupIdleThread(); |
| 167 | 166 | ||
| 168 | /// Initialize threading | 167 | /// Initialize threading |
| 169 | void ThreadingInit(); | 168 | void ThreadingInit(); |