21 #include "../../SDL_internal.h" 32 #include "../SDL_systhread.h" 33 #include "../SDL_thread_c.h" 34 #include <pspkerneltypes.h> 35 #include <pspthreadman.h> 38 static int ThreadEntry(SceSize args,
void *argp)
46 SceKernelThreadInfo status;
50 status.size =
sizeof(SceKernelThreadInfo);
51 if (sceKernelReferThreadStatus(sceKernelGetThreadId(), &status) == 0) {
52 priority = status.currentPriority;
55 thread->
handle = sceKernelCreateThread(thread->
name, ThreadEntry,
57 PSP_THREAD_ATTR_VFPU,
NULL);
62 sceKernelStartThread(thread->
handle, 4, &args);
79 sceKernelDeleteThread(thread->
handle);
85 sceKernelDeleteThread(thread->
handle);
90 sceKernelTerminateDeleteThread(thread->
handle);
105 return sceKernelChangeThreadPriority(sceKernelGetThreadId(),value);
GLuint const GLchar * name
SDL_threadID SDL_ThreadID(void)
void SDL_SYS_WaitThread(SDL_Thread *thread)
int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
GLsizei const GLfloat * value
void SDL_SYS_DetachThread(SDL_Thread *thread)
void SDL_RunThread(void *data)
void SDL_SYS_SetupThread(const char *name)
int SDL_SYS_CreateThread(SDL_Thread *thread, void *args)
unsigned long SDL_threadID