mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 19:55:46 +00:00
hle: kernel: KThread: Release thread resource on thread exit.
This commit is contained in:
parent
a96667d30c
commit
d09ade6cab
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ void KThread::Finalize() {
|
|||
// Decrement the parent process's thread count.
|
||||
if (parent != nullptr) {
|
||||
parent->DecrementThreadCount();
|
||||
parent->GetResourceLimit()->Release(ResourceType::Threads, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue