aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-08 20:59:17 -0500
committerbunnei <bunneidev@gmail.com>2014-12-08 20:59:17 -0500
commit3a57856b665f2e4c6ffdeab8b7092f29c86ef3d0 (patch)
treefadd5259fa1f227f73d65b2dbaffd77d20a9c23e /src/core/hle/kernel/thread.h
parenta6bf3fd61392dbbda6207bf8919a911ad7070032 (diff)
parentdd203f7068dd3aaf95ff9426629e14b4a86e06d2 (diff)
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.h11
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();