summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2021-01-24 22:54:37 -0800
committerGravatar bunnei2021-01-28 21:42:26 -0800
commit3856564727e3efcf85fb0c1e5431cab22d818370 (patch)
tree589d4322c34c6ae15184b322b9302c33f1c34087 /src/core/hle/kernel/process.cpp
parenthle: kernel: threading: Fix bug with host thread naming. (diff)
downloadyuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.gz
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.tar.xz
yuzu-3856564727e3efcf85fb0c1e5431cab22d818370.zip
hle: kernel: process: Add state lock.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 9f4583b49..0edbfc4cc 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -138,7 +138,7 @@ std::shared_ptr<ResourceLimit> Process::GetResourceLimit() const {
138 138
139void Process::IncrementThreadCount() { 139void Process::IncrementThreadCount() {
140 ASSERT(num_threads >= 0); 140 ASSERT(num_threads >= 0);
141 ++num_created_threads; 141 num_created_threads++;
142 142
143 if (const auto count = ++num_threads; count > peak_num_threads) { 143 if (const auto count = ++num_threads; count > peak_num_threads) {
144 peak_num_threads = count; 144 peak_num_threads = count;
@@ -443,7 +443,7 @@ bool Process::IsSignaled() const {
443Process::Process(Core::System& system) 443Process::Process(Core::System& system)
444 : KSynchronizationObject{system.Kernel()}, 444 : KSynchronizationObject{system.Kernel()},
445 page_table{std::make_unique<Memory::PageTable>(system)}, handle_table{system.Kernel()}, 445 page_table{std::make_unique<Memory::PageTable>(system)}, handle_table{system.Kernel()},
446 address_arbiter{system}, condition_var{system}, system{system} {} 446 address_arbiter{system}, condition_var{system}, state_lock{system.Kernel()}, system{system} {}
447 447
448Process::~Process() = default; 448Process::~Process() = default;
449 449