summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-14 23:41:33 -0500
committerGravatar bunnei2015-01-21 18:42:04 -0500
commit1f7a04f05a488b7d457d356f9bf2dda296cd6b92 (patch)
treeab6bffea6b9f85039af93f4f809c4d657f192d8f /src/core/hle/kernel/thread.h
parentEvent: Get rid of permanent_lock hack. (diff)
downloadyuzu-1f7a04f05a488b7d457d356f9bf2dda296cd6b92.tar.gz
yuzu-1f7a04f05a488b7d457d356f9bf2dda296cd6b92.tar.xz
yuzu-1f7a04f05a488b7d457d356f9bf2dda296cd6b92.zip
Thread: Keep track of multiple wait objects.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index daaeb26a4..9ec96c18c 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -96,7 +96,7 @@ public:
96 s32 processor_id; 96 s32 processor_id;
97 97
98 WaitType wait_type; 98 WaitType wait_type;
99 Object* wait_object; 99 std::vector<SharedPtr<WaitObject>> wait_objects;
100 VAddr wait_address; 100 VAddr wait_address;
101 101
102 std::string name; 102 std::string name;
@@ -128,7 +128,7 @@ Thread* GetCurrentThread();
128 * @param wait_type Type of wait 128 * @param wait_type Type of wait
129 * @param wait_object Kernel object that we are waiting on, defaults to current thread 129 * @param wait_object Kernel object that we are waiting on, defaults to current thread
130 */ 130 */
131void WaitCurrentThread(WaitType wait_type, Object* wait_object = GetCurrentThread()); 131void WaitCurrentThread(WaitType wait_type, WaitObject* wait_object = GetCurrentThread());
132 132
133/** 133/**
134 * Schedules an event to wake up the specified thread after the specified delay. 134 * Schedules an event to wake up the specified thread after the specified delay.
@@ -143,7 +143,7 @@ void WakeThreadAfterDelay(Thread* thread, s64 nanoseconds);
143 * @param wait_object Kernel object that we are waiting on 143 * @param wait_object Kernel object that we are waiting on
144 * @param wait_address Arbitration address used to resume from wait 144 * @param wait_address Arbitration address used to resume from wait
145 */ 145 */
146void WaitCurrentThread(WaitType wait_type, Object* wait_object, VAddr wait_address); 146void WaitCurrentThread(WaitType wait_type, WaitObject* wait_object, VAddr wait_address);
147 147
148 148
149 149