diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-03 06:46:34 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-09 01:44:10 +0100 |
commit | dd203f7068dd3aaf95ff9426629e14b4a86e06d2 (patch) | |
tree | fadd5259fa1f227f73d65b2dbaffd77d20a9c23e /src/core/hle/kernel/thread.h | |
parent | Merge pull request #244 from bunnei/cleanup-memmap (diff) | |
download | yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.tar yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.tar.gz yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.tar.bz2 yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.tar.lz yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.tar.xz yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.tar.zst yuzu-dd203f7068dd3aaf95ff9426629e14b4a86e06d2.zip |
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 @@ #pragma once #include "common/common_types.h" + +#include "core/mem_map.h" + #include "core/hle/kernel/kernel.h" #include "core/hle/result.h" @@ -85,6 +88,14 @@ Handle GetCurrentThreadHandle(); */ void WaitCurrentThread(WaitType wait_type, Handle wait_handle=GetCurrentThreadHandle()); +/** + * Puts the current thread in the wait state for the given type + * @param wait_type Type of wait + * @param wait_handle Handle of Kernel object that we are waiting on, defaults to current thread + * @param wait_address Arbitration address used to resume from wait + */ +void WaitCurrentThread(WaitType wait_type, Handle wait_handle, VAddr wait_address); + /// Put current thread in a wait state - on WaitSynchronization void WaitThread_Synchronization(); |