vitasdk
Documentation of the vitasdk
thread.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_KERNEL_THREADMGR_THREAD_H_
7 #define _PSP2KERN_KERNEL_THREADMGR_THREAD_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2kern/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 
37 SceUID ksceKernelCreateThread(const char *name, SceKernelThreadEntry entry, int initPriority,
38  SceSize stackSize, SceUInt attr, int cpuAffinityMask,
39  const SceKernelThreadOptParam *option);
40 
49 
57 int ksceKernelStartThread(SceUID thid, SceSize arglen, void *argp);
58 
64 int ksceKernelExitThread(int status);
65 
72 
82 int ksceKernelWaitThreadEnd(SceUID thid, int *stat, SceUInt *timeout);
83 
93 int ksceKernelWaitThreadEndCB(SceUID thid, int *stat, SceUInt *timeout);
94 
106 
118 
134 int ksceKernelChangeThreadPriority(SceUID thid, int priority);
135 
142 
149 
158 
168 
169 
170 #ifdef __cplusplus
171 }
172 #endif
173 
174 #endif /* _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