diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-11 20:42:22 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:51 +0200 |
commit | 84bb772003c921518a2ca920f4c4df2c9206844b (patch) | |
tree | 0d7f586d374ec2c9fd7208802160d3c67234c304 | |
parent | hle: kernel: svc_results: Update naming.. (diff) | |
download | yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.tar yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.tar.gz yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.tar.bz2 yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.tar.lz yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.tar.xz yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.tar.zst yuzu-84bb772003c921518a2ca920f4c4df2c9206844b.zip |
-rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index f798dfd59..5cc0a0064 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -255,7 +255,7 @@ void KThread::PostDestroy(uintptr_t arg) { const bool resource_limit_release_hint = (arg & 1); const s64 hint_value = (resource_limit_release_hint ? 0 : 1); if (owner != nullptr) { - owner->GetResourceLimit()->Release(Kernel::LimitableResource::Threads, 1, hint_value); + owner->GetResourceLimit()->Release(LimitableResource::Threads, 1, hint_value); owner->Close(); } } @@ -289,7 +289,6 @@ void KThread::Finalize() { // Decrement the parent process's thread count. if (parent != nullptr) { parent->DecrementThreadCount(); - parent->GetResourceLimit()->Release(LimitableResource::Threads, 1); } // Perform inherited finalization. |