summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-01-28 21:49:47 -0800
committerGravatar bunnei2021-01-28 21:49:47 -0800
commite24c6dab93d00676dfb22743534825bb6aa90d7c (patch)
tree3f09d1b287cda7a6d333fe5b65a55454104d4a52 /src
parentyuzu: debugger: Ignore HLE threads. (diff)
downloadyuzu-e24c6dab93d00676dfb22743534825bb6aa90d7c.tar.gz
yuzu-e24c6dab93d00676dfb22743534825bb6aa90d7c.tar.xz
yuzu-e24c6dab93d00676dfb22743534825bb6aa90d7c.zip
hle: kernel: KThread: Release thread resource on thread exit.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/k_thread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index 45ad589d9..aa100e139 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -247,6 +247,7 @@ void KThread::Finalize() {
247 // Decrement the parent process's thread count. 247 // Decrement the parent process's thread count.
248 if (parent != nullptr) { 248 if (parent != nullptr) {
249 parent->DecrementThreadCount(); 249 parent->DecrementThreadCount();
250 parent->GetResourceLimit()->Release(ResourceType::Threads, 1);
250 } 251 }
251} 252}
252 253