summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-14 05:29:54 +0100
committerLioncash <mathew1800@gmail.com>2019-03-15 01:55:52 +0100
commit555cd26ec2b848634370a14d41b7e79b6c6beecd (patch)
tree4ec6b8245280f94b44969356c9f2a44b22abd00e /src/core/hle/kernel/process.h
parentMerge pull request #2230 from lioncash/global (diff)
downloadyuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.tar
yuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.tar.gz
yuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.tar.bz2
yuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.tar.lz
yuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.tar.xz
yuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.tar.zst
yuzu-555cd26ec2b848634370a14d41b7e79b6c6beecd.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/process.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 47ffd4ad3..5e72300b6 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -14,6 +14,7 @@
#include "common/common_types.h"
#include "core/hle/kernel/address_arbiter.h"
#include "core/hle/kernel/handle_table.h"
+#include "core/hle/kernel/mutex.h"
#include "core/hle/kernel/process_capability.h"
#include "core/hle/kernel/vm_manager.h"
#include "core/hle/kernel/wait_object.h"
@@ -165,6 +166,16 @@ public:
return address_arbiter;
}
+ /// Gets a reference to the process' mutex lock.
+ Mutex& GetMutex() {
+ return mutex;
+ }
+
+ /// Gets a const reference to the process' mutex lock
+ const Mutex& GetMutex() const {
+ return mutex;
+ }
+
/// Gets the current status of the process
ProcessStatus GetStatus() const {
return status;
@@ -327,6 +338,11 @@ private:
/// Per-process address arbiter.
AddressArbiter address_arbiter;
+ /// The per-process mutex lock instance used for handling various
+ /// forms of services, such as lock arbitration, and condition
+ /// variable related facilities.
+ Mutex mutex;
+
/// Random values for svcGetInfo RandomEntropy
std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy;