diff options
Diffstat (limited to 'include/kernel/kernel/threadmgr.h')
-rw-r--r-- | include/kernel/kernel/threadmgr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/kernel/kernel/threadmgr.h b/include/kernel/kernel/threadmgr.h index 391f277..c329544 100644 --- a/include/kernel/kernel/threadmgr.h +++ b/include/kernel/kernel/threadmgr.h @@ -845,6 +845,16 @@ typedef int (*SceKernelWorkQueueWorkFunction)(void *args); */ int sceKernelEnqueueWorkQueue(SceUID uid, const char *name, SceKernelWorkQueueWorkFunction work, void *args); +/** + * @brief Retreive a list of all threads belonging to a process. + * @param[in] pid The process to query. + * @param[out] ids The list of thread ids. Can be NULL if output is not required. + * @param[in] n The max number of thread ids to copy out. + * @param[out] copy_count The number of thread ids copied. + * @return The number of threads within the process, else < 0 on error. + */ +int sceKernelGetThreadIdList(SceUID pid, SceUID *ids, int n, int *copy_count); + #ifdef __cplusplus } #endif |