summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-25 16:38:33 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:13 -0400
commit3b5b950c895a2db217a3e5c8105cec4498a2534e (patch)
tree2a8e054af30c9aa8039f8faa4b993e2290642184 /src/core/hle/kernel/thread.h
parentSVC: Remove global HLE Lock. (diff)
downloadyuzu-3b5b950c895a2db217a3e5c8105cec4498a2534e.tar.gz
yuzu-3b5b950c895a2db217a3e5c8105cec4498a2534e.tar.xz
yuzu-3b5b950c895a2db217a3e5c8105cec4498a2534e.zip
SVC: Correct SignalEvent, ClearEvent, ResetSignal, WaitSynchronization, CancelSynchronization, ArbitrateLock
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 29fe5483b..a8ae1a66f 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -259,13 +259,23 @@ public:
259 * Sets the result after the thread awakens (from svcWaitSynchronization) 259 * Sets the result after the thread awakens (from svcWaitSynchronization)
260 * @param result Value to set to the returned result 260 * @param result Value to set to the returned result
261 */ 261 */
262 void SetWaitSynchronizationResult(ResultCode result); 262 void /*deprecated*/ SetWaitSynchronizationResult(ResultCode result);
263 263
264 /** 264 /**
265 * Sets the output parameter value after the thread awakens (from svcWaitSynchronization) 265 * Sets the output parameter value after the thread awakens (from svcWaitSynchronization)
266 * @param output Value to set to the output parameter 266 * @param output Value to set to the output parameter
267 */ 267 */
268 void SetWaitSynchronizationOutput(s32 output); 268 void /*deprecated*/ SetWaitSynchronizationOutput(s32 output);
269
270 void SetSynchronizationResults(SynchronizationObject* object, ResultCode result);
271
272 SynchronizationObject* GetSignalingObject() const {
273 return signaling_object;
274 }
275
276 ResultCode GetSignalingResult() const {
277 return signaling_result;
278 }
269 279
270 /** 280 /**
271 * Retrieves the index that this particular object occupies in the list of objects 281 * Retrieves the index that this particular object occupies in the list of objects
@@ -565,6 +575,9 @@ private:
565 /// passed to WaitSynchronization. 575 /// passed to WaitSynchronization.
566 ThreadSynchronizationObjects wait_objects; 576 ThreadSynchronizationObjects wait_objects;
567 577
578 SynchronizationObject* signaling_object;
579 ResultCode signaling_result{RESULT_SUCCESS};
580
568 /// List of threads that are waiting for a mutex that is held by this thread. 581 /// List of threads that are waiting for a mutex that is held by this thread.
569 MutexWaitingThreads wait_mutex_threads; 582 MutexWaitingThreads wait_mutex_threads;
570 583