diff options
| author | 2021-01-24 22:54:37 -0800 | |
|---|---|---|
| committer | 2021-01-28 21:42:26 -0800 | |
| commit | 3856564727e3efcf85fb0c1e5431cab22d818370 (patch) | |
| tree | 589d4322c34c6ae15184b322b9302c33f1c34087 /src/core/hle/kernel/process.h | |
| parent | hle: kernel: threading: Fix bug with host thread naming. (diff) | |
| download | yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.gz yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.xz yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.zip | |
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: | |||
| 348 | void PinCurrentThread(); | 348 | void PinCurrentThread(); |
| 349 | void UnpinCurrentThread(); | 349 | void UnpinCurrentThread(); |
| 350 | 350 | ||
| 351 | KLightLock& GetStateLock() { | ||
| 352 | return state_lock; | ||
| 353 | } | ||
| 354 | |||
| 351 | /////////////////////////////////////////////////////////////////////////////////////////////// | 355 | /////////////////////////////////////////////////////////////////////////////////////////////// |
| 352 | // Thread-local storage management | 356 | // Thread-local storage management |
| 353 | 357 | ||
| @@ -472,6 +476,8 @@ private: | |||
| 472 | 476 | ||
| 473 | KThread* exception_thread{}; | 477 | KThread* exception_thread{}; |
| 474 | 478 | ||
| 479 | KLightLock state_lock; | ||
| 480 | |||
| 475 | /// System context | 481 | /// System context |
| 476 | Core::System& system; | 482 | Core::System& system; |
| 477 | }; | 483 | }; |