Explorar o código

hle: kernel: KThread: Add missing resource hint release.

bunnei %!s(int64=5) %!d(string=hai) anos
pai
achega
c2f6f2ba7a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/k_thread.cpp

+ 1 - 1
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;
     }