summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-01-25 07:54:37 +0100
committerbunnei <bunneidev@gmail.com>2021-01-29 06:42:26 +0100
commit3856564727e3efcf85fb0c1e5431cab22d818370 (patch)
tree589d4322c34c6ae15184b322b9302c33f1c34087 /src/core/hle/kernel/process.h
parenthle: kernel: threading: Fix bug with host thread naming. (diff)
downloadyuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.gz
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.bz2
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.lz
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.xz
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.zst
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.zip
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 11d78f3a8..26e647743 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -348,6 +348,10 @@ public:
void PinCurrentThread();
void UnpinCurrentThread();
+ KLightLock& GetStateLock() {
+ return state_lock;
+ }
+
///////////////////////////////////////////////////////////////////////////////////////////////
// Thread-local storage management
@@ -472,6 +476,8 @@ private:
KThread* exception_thread{};
+ KLightLock state_lock;
+
/// System context
Core::System& system;
};