summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-22 12:08:39 -0400
committerGravatar GitHub2018-06-22 12:08:39 -0400
commit6d7941042bd8badcd8e93521b40cbbc29215351e (patch)
treef4b72f5d717e1fffe784b1f4100fe01177b6b02a /src/core/hle/kernel/thread.h
parentMerge pull request #581 from mailwl/empty-buf-skip (diff)
parentKernel/Arbiters: Fix casts, cleanup comments/magic numbers (diff)
downloadyuzu-6d7941042bd8badcd8e93521b40cbbc29215351e.tar.gz
yuzu-6d7941042bd8badcd8e93521b40cbbc29215351e.tar.xz
yuzu-6d7941042bd8badcd8e93521b40cbbc29215351e.zip
Merge pull request #579 from SciresM/master
svc: Fully implement svcSignalToAddress and svcWaitForAddress
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 1d2da6d50..f1e759802 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -45,6 +45,7 @@ enum ThreadStatus {
45 THREADSTATUS_WAIT_SYNCH_ANY, ///< Waiting due to WaitSynch1 or WaitSynchN with wait_all = false 45 THREADSTATUS_WAIT_SYNCH_ANY, ///< Waiting due to WaitSynch1 or WaitSynchN with wait_all = false
46 THREADSTATUS_WAIT_SYNCH_ALL, ///< Waiting due to WaitSynchronizationN with wait_all = true 46 THREADSTATUS_WAIT_SYNCH_ALL, ///< Waiting due to WaitSynchronizationN with wait_all = true
47 THREADSTATUS_WAIT_MUTEX, ///< Waiting due to an ArbitrateLock/WaitProcessWideKey svc 47 THREADSTATUS_WAIT_MUTEX, ///< Waiting due to an ArbitrateLock/WaitProcessWideKey svc
48 THREADSTATUS_WAIT_ARB, ///< Waiting due to a SignalToAddress/WaitForAddress svc
48 THREADSTATUS_DORMANT, ///< Created but not yet made ready 49 THREADSTATUS_DORMANT, ///< Created but not yet made ready
49 THREADSTATUS_DEAD ///< Run to completion, or forcefully terminated 50 THREADSTATUS_DEAD ///< Run to completion, or forcefully terminated
50}; 51};
@@ -230,6 +231,9 @@ public:
230 VAddr mutex_wait_address; ///< If waiting on a Mutex, this is the mutex address 231 VAddr mutex_wait_address; ///< If waiting on a Mutex, this is the mutex address
231 Handle wait_handle; ///< The handle used to wait for the mutex. 232 Handle wait_handle; ///< The handle used to wait for the mutex.
232 233
234 // If waiting for an AddressArbiter, this is the address being waited on.
235 VAddr arb_wait_address{0};
236
233 std::string name; 237 std::string name;
234 238
235 /// Handle used by guest emulated application to access this thread 239 /// Handle used by guest emulated application to access this thread