diff options
| author | 2015-01-08 18:45:35 -0500 | |
|---|---|---|
| committer | 2015-01-08 18:45:35 -0500 | |
| commit | cf1bbe8705b04776be49c01265b11babbda59b2e (patch) | |
| tree | 0bf742b6be09aa56c4a49f57667b463399b45d93 /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #446 from lioncash/umaal (diff) | |
| parent | SVC: Fixed SleepThread. (diff) | |
| download | yuzu-cf1bbe8705b04776be49c01265b11babbda59b2e.tar.gz yuzu-cf1bbe8705b04776be49c01265b11babbda59b2e.tar.xz yuzu-cf1bbe8705b04776be49c01265b11babbda59b2e.zip | |
Merge pull request #443 from Subv/sleep_thread
SVC: Fixed SleepThread
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index dfe92d162..e6961e279 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -88,6 +88,13 @@ Handle GetCurrentThreadHandle(); | |||
| 88 | void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); | 88 | void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); |
| 89 | 89 | ||
| 90 | /** | 90 | /** |
| 91 | * Schedules an event to wake up the specified thread after the specified delay. | ||
| 92 | * @param handle The thread handle. | ||
| 93 | * @param nanoseconds The time this thread will be allowed to sleep for. | ||
| 94 | */ | ||
| 95 | void WakeThreadAfterDelay(Handle handle, s64 nanoseconds); | ||
| 96 | |||
| 97 | /** | ||
| 91 | * Puts the current thread in the wait state for the given type | 98 | * Puts the current thread in the wait state for the given type |
| 92 | * @param wait_type Type of wait | 99 | * @param wait_type Type of wait |
| 93 | * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread | 100 | * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread |