29 #include "SDL_thread.h"
30 #include "../SDL_systhread.h"
31 #include "../SDL_thread_c.h"
32 #include <pspkerneltypes.h>
33 #include <pspthreadman.h>
44 SceKernelThreadInfo status;
48 status.size =
sizeof(SceKernelThreadInfo);
49 if (sceKernelReferThreadStatus(sceKernelGetThreadId(), &status) == 0) {
50 priority = status.currentPriority;
55 PSP_THREAD_ATTR_VFPU,
NULL);
60 sceKernelStartThread(thread->
handle, 4, &args);
77 sceKernelDeleteThread(thread->
handle);
82 sceKernelTerminateDeleteThread(thread->
handle);
97 return sceKernelChangeThreadPriority(sceKernelGetThreadId(),value);
DECLSPEC SDL_threadID SDLCALL SDL_ThreadID(void)
unsigned long SDL_threadID
EGLImageKHR EGLint * name
int SDL_SYS_CreateThread(SDL_Thread *thread, void *args)
void SDL_SYS_KillThread(SDL_Thread *thread)
void SDL_SYS_WaitThread(SDL_Thread *thread)
static int ThreadEntry(SceSize args, void *argp)
int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
static SDL_Thread * thread
EGLSurface EGLint void ** value
void SDL_RunThread(void *data)
void SDL_SYS_SetupThread(const char *name)