Przeglądaj źródła

hle: kernel: KThread: Release thread resource on thread exit.

bunnei 5 lat temu
rodzic
commit
e24c6dab93
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/core/hle/kernel/k_thread.cpp

+ 1 - 0
src/core/hle/kernel/k_thread.cpp

@@ -247,6 +247,7 @@ void KThread::Finalize() {
     // Decrement the parent process's thread count.
     // Decrement the parent process's thread count.
     if (parent != nullptr) {
     if (parent != nullptr) {
         parent->DecrementThreadCount();
         parent->DecrementThreadCount();
+        parent->GetResourceLimit()->Release(ResourceType::Threads, 1);
     }
     }
 }
 }