mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
pm: correct extra application thread allocation counts
This commit is contained in:
parent
f670949ca9
commit
3bc7c52ade
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ namespace ams::pm::resource {
|
||||||
R_ABORT_UNLESS(svc::GetResourceLimitLimitValue(&total_threads_available, GetResourceLimitHandle(ResourceLimitGroup_System), svc::LimitableResource_ThreadCountMax));
|
R_ABORT_UNLESS(svc::GetResourceLimitLimitValue(&total_threads_available, GetResourceLimitHandle(ResourceLimitGroup_System), svc::LimitableResource_ThreadCountMax));
|
||||||
|
|
||||||
/* See how many threads we're expecting. */
|
/* See how many threads we're expecting. */
|
||||||
const s64 total_threads_allocated = g_resource_limits[ResourceLimitGroup_System][svc::LimitableResource_ThreadCountMax] -
|
const s64 total_threads_allocated = g_resource_limits[ResourceLimitGroup_System][svc::LimitableResource_ThreadCountMax] +
|
||||||
g_resource_limits[ResourceLimitGroup_Application][svc::LimitableResource_ThreadCountMax] -
|
g_resource_limits[ResourceLimitGroup_Application][svc::LimitableResource_ThreadCountMax] +
|
||||||
g_resource_limits[ResourceLimitGroup_Applet][svc::LimitableResource_ThreadCountMax];
|
g_resource_limits[ResourceLimitGroup_Applet][svc::LimitableResource_ThreadCountMax];
|
||||||
|
|
||||||
/* Ensure we don't over-commit threads. */
|
/* Ensure we don't over-commit threads. */
|
||||||
|
|
Loading…
Reference in a new issue