From c2f6f2ba7a6595abfd6e0e829a556b7424516a2d Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 11 Apr 2021 10:51:09 -0700 Subject: [PATCH] hle: kernel: KThread: Add missing resource hint release. --- src/core/hle/kernel/k_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index fbab5ecb7..f798dfd59 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -981,7 +981,7 @@ void KThread::Exit() { // Release the thread resource hint from parent. if (parent != nullptr) { - // TODO(bunnei): Hint that the resource is about to be released. + parent->GetResourceLimit()->Release(Kernel::LimitableResource::Threads, 0, 1); resource_limit_release_hint = true; }