mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 16:52:46 +01:00
hle: kernel: KThread: Remove incorrect resource release.
This commit is contained in:
parent
269d233a94
commit
84bb772003
1 changed files with 1 additions and 2 deletions
|
@ -255,7 +255,7 @@ void KThread::PostDestroy(uintptr_t arg) {
|
||||||
const bool resource_limit_release_hint = (arg & 1);
|
const bool resource_limit_release_hint = (arg & 1);
|
||||||
const s64 hint_value = (resource_limit_release_hint ? 0 : 1);
|
const s64 hint_value = (resource_limit_release_hint ? 0 : 1);
|
||||||
if (owner != nullptr) {
|
if (owner != nullptr) {
|
||||||
owner->GetResourceLimit()->Release(Kernel::LimitableResource::Threads, 1, hint_value);
|
owner->GetResourceLimit()->Release(LimitableResource::Threads, 1, hint_value);
|
||||||
owner->Close();
|
owner->Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,6 @@ 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(LimitableResource::Threads, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform inherited finalization.
|
// Perform inherited finalization.
|
||||||
|
|
Loading…
Reference in a new issue