summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-22 03:18:36 +0100
committerGitHub <noreply@github.com>2019-03-22 03:18:36 +0100
commit7b6d516faa788c25e26c79e2e5d19915f73983a5 (patch)
treed477c1598d78ad60360f2ab08d3b201fff9f38bd /src/core/hle/kernel/process.h
parentMerge pull request #2274 from lioncash/include (diff)
parentcore/hle/kernel/mutex: Remove usages of global system accessors (diff)
downloadyuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.tar
yuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.tar.gz
yuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.tar.bz2
yuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.tar.lz
yuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.tar.xz
yuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.tar.zst
yuzu-7b6d516faa788c25e26c79e2e5d19915f73983a5.zip
Diffstat (limited to 'src/core/hle/kernel/process.h')
-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 3ae7c922c..1bd7bf5c1 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -13,6 +13,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"
@@ -126,6 +127,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;
@@ -288,6 +299,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;