![]() |
vitasdk
Documentation of the vitasdk
|
#include <vitasdk/build_utils.h>#include <psp2/types.h>#include <psp2/kernel/cpu.h>#include <psp2common/kernel/threadmgr.h>Go to the source code of this file.
Data Structures | |
| struct | SceKernelSystemInfo |
| struct | SceKernelSystemInfo.cpuInfo |
Functions | |
| SceUID | sceKernelCreateThread (const char *name, SceKernelThreadEntry entry, int initPriority, SceSize stackSize, SceUInt attr, int cpuAffinityMask, const SceKernelThreadOptParam *option) |
| Create a thread. | |
| int | sceKernelDeleteThread (SceUID thid) |
| Delate a thread. | |
| int | sceKernelStartThread (SceUID thid, SceSize arglen, void *argp) |
| Start a created thread. | |
| int | sceKernelExitThread (int status) |
| Exit a thread. | |
| int | sceKernelExitDeleteThread (int status) |
| Exit a thread and delete itself. | |
| int | sceKernelWaitThreadEnd (SceUID thid, int *stat, SceUInt *timeout) |
| Wait until a thread has ended. | |
| int | sceKernelWaitThreadEndCB (SceUID thid, int *stat, SceUInt *timeout) |
| Wait until a thread has ended and handle callbacks if necessary. | |
| int | sceKernelDelayThread (SceUInt delay) |
| Delay the current thread by a specified number of microseconds. | |
| int | sceKernelDelayThreadCB (SceUInt delay) |
| Delay the current thread by a specified number of microseconds and handle any callbacks. | |
| int | sceKernelChangeCurrentThreadAttr (SceUInt clearAttr, SceUInt setAttr) |
| Modify the attributes of the current thread. | |
| int | sceKernelChangeThreadPriority (SceUID thid, int priority) |
| Change the threads current priority. | |
| int | sceKernelGetThreadCurrentPriority (void) |
| Get the current priority of the thread you are in. | |
| int | sceKernelGetThreadExitStatus (SceUID thid, int *status) |
| Get the exit status of a thread. | |
| int | sceKernelCheckThreadStack (void) |
| Check the thread stack? | |
| int | sceKernelGetThreadStackFreeSize (SceUID thid) |
| Get the free stack size for a thread. | |
| int | sceKernelGetThreadInfo (SceUID thid, SceKernelThreadInfo *info) |
| Get the status information for the specified thread. | |
| int | sceKernelGetThreadRunStatus (SceUID thid, SceKernelThreadRunStatus *status) |
| Retrive the runtime status of a thread. | |
| int | sceKernelGetThreadCpuAffinityMask (SceUID thid) |
| Retrive the cpu affinity mask of a thread. | |
| int | sceKernelChangeThreadCpuAffinityMask (SceUID thid, int mask) |
| Set the cpu affinity mask of a thread. | |
| int | sceKernelGetThreadId (void) |
| Get the current thread Id. | |
| SceUID | sceKernelGetProcessId (void) |
| Get the process ID of in the running thread. | |
| SceUID | sceKernelRegisterThreadEventHandler (const char *name, SceUID thid, SceInt32 eventMask, SceKernelThreadEventHandler handler, void *common) |
| Register a handler for thread events. | |
| SceUID | sceKernelUnregisterThreadEventHandler (SceUID id) |
| Unregister a thread event handler. | |
| VITASDK_BUILD_ASSERT_EQ (0x48, SceKernelSystemInfo) | |
| int | sceKernelGetSystemInfo (SceKernelSystemInfo *info) |
| Get the system information. | |
| SceKernelIdListType | sceKernelGetThreadmgrUIDClass (SceUID uid) |
| Get the type of a Threadmgr uid. | |
| void * | sceKernelGetThreadTLSAddr (SceUID thid, int key) |
| sceKernelGetThreadTLSAddr gets an address to a 4 bytes area of TLS memory for the specified thread | |
| void * | sceKernelGetTLSAddr (int key) |
| sceKernelGetTLSAddr get pointer to TLS key area for current thread | |
| SceInt64 | sceKernelGetSystemTimeWide (void) |
| Get the system time (wide version) | |