mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
Implement GetResourceLimitValue for thread count (#438)
This commit is contained in:
parent
25d8e5807f
commit
e4bea43fd6
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ s32 Kernel::getCurrentResourceValue(const KernelObject* limit, u32 resourceName)
|
|||
const auto data = static_cast<ResourceLimits*>(limit->data);
|
||||
switch (resourceName) {
|
||||
case ResourceType::Commit: return mem.usedUserMemory;
|
||||
case ResourceType::Thread: return threadIndices.size();
|
||||
default: Helpers::panic("Attempted to get current value of unknown kernel resource: %d\n", resourceName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue