vitasdk
Documentation of the vitasdk
thread.h File Reference

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. More...
 
int sceKernelDeleteThread (SceUID thid)
 Delate a thread. More...
 
int sceKernelStartThread (SceUID thid, SceSize arglen, void *argp)
 Start a created thread. More...
 
int sceKernelExitThread (int status)
 Exit a thread. More...
 
int sceKernelExitDeleteThread (int status)
 Exit a thread and delete itself. More...
 
int sceKernelWaitThreadEnd (SceUID thid, int *stat, SceUInt *timeout)
 Wait until a thread has ended. More...
 
int sceKernelWaitThreadEndCB (SceUID thid, int *stat, SceUInt *timeout)
 Wait until a thread has ended and handle callbacks if necessary. More...
 
int sceKernelDelayThread (SceUInt delay)
 Delay the current thread by a specified number of microseconds. More...
 
int sceKernelDelayThreadCB (SceUInt delay)
 Delay the current thread by a specified number of microseconds and handle any callbacks. More...
 
int sceKernelChangeCurrentThreadAttr (SceUInt clearAttr, SceUInt setAttr)
 Modify the attributes of the current thread. More...
 
int sceKernelChangeThreadPriority (SceUID thid, int priority)
 Change the threads current priority. More...
 
int sceKernelGetThreadCurrentPriority (void)
 Get the current priority of the thread you are in. More...
 
int sceKernelGetThreadExitStatus (SceUID thid, int *status)
 Get the exit status of a thread. More...
 
int sceKernelCheckThreadStack (void)
 Check the thread stack? More...
 
int sceKernelGetThreadStackFreeSize (SceUID thid)
 Get the free stack size for a thread. More...
 
int sceKernelGetThreadInfo (SceUID thid, SceKernelThreadInfo *info)
 Get the status information for the specified thread. More...
 
int sceKernelGetThreadRunStatus (SceUID thid, SceKernelThreadRunStatus *status)
 Retrive the runtime status of a thread. More...
 
int sceKernelGetThreadCpuAffinityMask (SceUID thid)
 Retrive the cpu affinity mask of a thread. More...
 
int sceKernelChangeThreadCpuAffinityMask (SceUID thid, int mask)
 Set the cpu affinity mask of a thread. More...
 
int sceKernelGetThreadId (void)
 Get the current thread Id. More...
 
SceUID sceKernelGetProcessId (void)
 Get the process ID of in the running thread. More...
 
 VITASDK_BUILD_ASSERT_EQ (0x48, SceKernelSystemInfo)
 
int sceKernelGetSystemInfo (SceKernelSystemInfo *info)
 Get the system information. More...
 
SceKernelIdListType sceKernelGetThreadmgrUIDClass (SceUID uid)
 Get the type of a Threadmgr uid. More...
 
void * sceKernelGetThreadTLSAddr (SceUID thid, int key)
 sceKernelGetThreadTLSAddr gets an address to a 4 bytes area of TLS memory for the specified thread More...
 
void * sceKernelGetTLSAddr (int key)
 sceKernelGetTLSAddr get pointer to TLS key area for current thread More...
 
SceInt64 sceKernelGetSystemTimeWide (void)
 Get the system time (wide version) More...