pte_osResult pte_osThreadStart(pte_osThreadHandle osThreadHandle) { psl1ghtThreadData *pThreadData = getThreadData(osThreadHandle); sysThreadSetPriority(osThreadHandle, pThreadData->priority); return PTE_OS_OK; }
int SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority) { int value; if (priority == SDL_THREAD_PRIORITY_LOW) { value = 3000; } else if (priority == SDL_THREAD_PRIORITY_HIGH) { value = 1; } else { value = 1500; } sys_ppu_thread_t id; sysThreadGetId(&id); return sysThreadSetPriority(id, value); }
pte_osResult pte_osThreadSetPriority(pte_osThreadHandle threadHandle, int newPriority) { sysThreadSetPriority (threadHandle, newPriority); return PTE_OS_OK; }