6 #ifndef _PSP2KERN_KERNEL_THREADMGR_THREAD_H_
7 #define _PSP2KERN_KERNEL_THREADMGR_THREAD_H_
int ksceKernelDelayThreadCB(SceUInt delay)
Delay the current thread by a specified number of microseconds and handle any callbacks.
int ksceKernelStartThread(SceUID thid, SceSize arglen, void *argp)
Start a created thread.
int ksceKernelGetThreadCurrentPriority(void)
Get the current priority of the thread you are in.
int ksceKernelExitThread(int status)
Exit a thread.
int ksceKernelDeleteThread(SceUID thid)
Delate a thread.
int ksceKernelGetThreadInfo(SceUID thid, SceKernelThreadInfo *info)
Get the thread info by thread id.
int ksceKernelChangeThreadPriority(SceUID thid, int priority)
Change the threads current priority.
int ksceKernelGetThreadId(void)
Get the current thread Id.
SceUID ksceKernelCreateThread(const char *name, SceKernelThreadEntry entry, int initPriority, SceSize stackSize, SceUInt attr, int cpuAffinityMask, const SceKernelThreadOptParam *option)
Create a thread.
int ksceKernelGetThreadStackFreeSize(SceUID thid)
Get the free stack size for a thread.
int ksceKernelWaitThreadEndCB(SceUID thid, int *stat, SceUInt *timeout)
Wait until a thread has ended and handle callbacks if necessary.
int ksceKernelWaitThreadEnd(SceUID thid, int *stat, SceUInt *timeout)
Wait until a thread has ended.
int ksceKernelExitDeleteThread(int status)
Exit a thread and delete itself.
int ksceKernelDelayThread(SceUInt delay)
Delay the current thread by a specified number of microseconds.
int(* SceKernelThreadEntry)(SceSize args, void *argp)
Definition: threadmgr.h:62
Structure to hold the status information for a thread.
Definition: threadmgr.h:81
Additional options used when creating threads.
Definition: threadmgr.h:65
unsigned int SceSize
Definition: types.h:56
uint32_t SceUInt
Definition: types.h:48
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90