diff options
| author | 2014-12-08 20:59:17 -0500 | |
|---|---|---|
| committer | 2014-12-08 20:59:17 -0500 | |
| commit | 3a57856b665f2e4c6ffdeab8b7092f29c86ef3d0 (patch) | |
| tree | fadd5259fa1f227f73d65b2dbaffd77d20a9c23e /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #244 from bunnei/cleanup-memmap (diff) | |
| parent | Thread: Fixed to wait on address when in arbitration. (diff) | |
| download | yuzu-3a57856b665f2e4c6ffdeab8b7092f29c86ef3d0.tar.gz yuzu-3a57856b665f2e4c6ffdeab8b7092f29c86ef3d0.tar.xz yuzu-3a57856b665f2e4c6ffdeab8b7092f29c86ef3d0.zip | |
Merge pull request #242 from bunnei/fix-address-arbiters
Thread: Fixed to wait on address when in arbitration.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 53a19d779..be7adface 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -5,6 +5,9 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | |||
| 9 | #include "core/mem_map.h" | ||
| 10 | |||
| 8 | #include "core/hle/kernel/kernel.h" | 11 | #include "core/hle/kernel/kernel.h" |
| 9 | #include "core/hle/result.h" | 12 | #include "core/hle/result.h" |
| 10 | 13 | ||
| @@ -85,6 +88,14 @@ Handle GetCurrentThreadHandle(); | |||
| 85 | */ | 88 | */ |
| 86 | void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); | 89 | void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); |
| 87 | 90 | ||
| 91 | /** | ||
| 92 | * Puts the current thread in the wait state for the given type | ||
| 93 | * @param wait_type Type of wait | ||
| 94 | * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread | ||
| 95 | * @param wait_address Arbitration address used to resume from wait | ||
| 96 | */ | ||
| 97 | void WaitCurrentThread(WaitType wait_type, Handle wait_handle, VAddr wait_address); | ||
| 98 | |||
| 88 | /// Put current thread in a wait state - on WaitSynchronization | 99 | /// Put current thread in a wait state - on WaitSynchronization |
| 89 | void WaitThread_Synchronization(); | 100 | void WaitThread_Synchronization(); |
| 90 | 101 | ||