summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-17 07:08:12 -0400
committerGravatar Lioncash2019-04-17 09:30:56 -0400
commit433b59c1121a257ae3c1503fff5b71d3f3852ab5 (patch)
tree23f4cbe699ff28d3f5907aff55f49081623d419b /src/core/hle/kernel/thread.h
parentMerge pull request #2315 from ReinUsesLisp/severity-decompiler (diff)
downloadyuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.gz
yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.xz
yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.zip
kernel/svc: Migrate svcCancelSynchronization behavior to a thread function
The actual behavior of this function is slightly more complex than what we're currently doing within the supervisor call. To avoid dumping most of this behavior in the supervisor call itself, we can migrate this to another function.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 32026d7f0..e3c457408 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -164,11 +164,17 @@ public:
164 return tls_memory; 164 return tls_memory;
165 } 165 }
166 166
167 /** 167 /// Resumes a thread from waiting
168 * Resumes a thread from waiting
169 */
170 void ResumeFromWait(); 168 void ResumeFromWait();
171 169
170 /// Cancels a waiting operation that this thread may or may not be within.
171 ///
172 /// When the thread is within a waiting state, this will set the thread's
173 /// waiting result to signal a canceled wait. The function will then resume
174 /// this thread.
175 ///
176 void CancelWait();
177
172 /** 178 /**
173 * Schedules an event to wake up the specified thread after the specified delay 179 * Schedules an event to wake up the specified thread after the specified delay
174 * @param nanoseconds The time this thread will be allowed to sleep for 180 * @param nanoseconds The time this thread will be allowed to sleep for