src/thread/psp/SDL_systhread.c
changeset 10151 33d1646359f0
parent 10145 cd87106d1d47
equal deleted inserted replaced
10150:8387a58a5c19 10151:33d1646359f0
    51     if (sceKernelReferThreadStatus(sceKernelGetThreadId(), &status) == 0) {
    51     if (sceKernelReferThreadStatus(sceKernelGetThreadId(), &status) == 0) {
    52         priority = status.currentPriority;
    52         priority = status.currentPriority;
    53     }
    53     }
    54 
    54 
    55     thread->handle = sceKernelCreateThread(thread->name, ThreadEntry,
    55     thread->handle = sceKernelCreateThread(thread->name, ThreadEntry,
    56                            priority, thread->stacksize ? ((int) stacksize) : 0x8000,
    56                            priority, thread->stacksize ? ((int) thread->stacksize) : 0x8000,
    57                            PSP_THREAD_ATTR_VFPU, NULL);
    57                            PSP_THREAD_ATTR_VFPU, NULL);
    58     if (thread->handle < 0) {
    58     if (thread->handle < 0) {
    59         return SDL_SetError("sceKernelCreateThread() failed");
    59         return SDL_SetError("sceKernelCreateThread() failed");
    60     }
    60     }
    61 
    61