kernel: process: Implement GetFreeThreadCount

Used by Just Dance® 2023 Edition
This commit is contained in:
Narr the Reg
2022-12-15 13:22:07 -06:00
parent b8c03411e7
commit dca4f0687a
3 changed files with 28 additions and 1 deletions

View File

@ -304,6 +304,9 @@ public:
/// from this process' thread list.
void UnregisterThread(KThread* thread);
/// Retrieves the number of available threads for this process.
u64 GetFreeThreadCount() const;
/// Clears the signaled state of the process if and only if it's signaled.
///
/// @pre The process must not be already terminated. If this is called on a