diff options
| author | bunnei <bunneidev@gmail.com> | 2021-01-24 22:54:37 -0800 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2021-01-28 21:42:26 -0800 |
| commit | 3856564727e3efcf85fb0c1e5431cab22d818370 (patch) | |
| tree | 589d4322c34c6ae15184b322b9302c33f1c34087 /src/core/hle/kernel/process.h | |
| parent | ff46ef7ea36632129a2b013ebb62016d6f59f22e (diff) | |
hle: kernel: process: Add state lock.
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 6 |
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; }; |
