diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-03 23:53:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 23:53:25 +0100 |
commit | b0c97526633dffdf105f6d0a854ee2d02ae5a516 (patch) | |
tree | 9da902b04fb9424a3f1e32ee05b81327da521157 /src/core/hle/kernel/k_thread.cpp | |
parent | Merge pull request #5842 from german77/userfix (diff) | |
parent | Simplify limitableresource names (diff) | |
download | yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.tar yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.tar.gz yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.tar.bz2 yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.tar.lz yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.tar.xz yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.tar.zst yuzu-b0c97526633dffdf105f6d0a854ee2d02ae5a516.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index aa100e139..b59259c4f 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -21,6 +21,7 @@ #include "core/hle/kernel/errors.h" #include "core/hle/kernel/handle_table.h" #include "core/hle/kernel/k_condition_variable.h" +#include "core/hle/kernel/k_resource_limit.h" #include "core/hle/kernel/k_scheduler.h" #include "core/hle/kernel/k_scoped_scheduler_lock_and_sleep.h" #include "core/hle/kernel/k_thread.h" @@ -29,7 +30,6 @@ #include "core/hle/kernel/memory/memory_layout.h" #include "core/hle/kernel/object.h" #include "core/hle/kernel/process.h" -#include "core/hle/kernel/resource_limit.h" #include "core/hle/kernel/svc_results.h" #include "core/hle/kernel/time_manager.h" #include "core/hle/result.h" @@ -247,7 +247,7 @@ void KThread::Finalize() { // Decrement the parent process's thread count. if (parent != nullptr) { parent->DecrementThreadCount(); - parent->GetResourceLimit()->Release(ResourceType::Threads, 1); + parent->GetResourceLimit()->Release(LimitableResource::Threads, 1); } } |