(PSP1) Implement rarch_sleep for PSP1

This commit is contained in:
twinaphex 2012-11-23 18:51:26 +01:00
parent a33c7a7d61
commit 844ea8d1fc

View File

@ -690,14 +690,18 @@ static inline float db_to_gain(float db)
return powf(10.0f, db / 20.0f); return powf(10.0f, db / 20.0f);
} }
#ifdef GEKKO #if defined(GEKKO)
#include <unistd.h> #include <unistd.h>
#elif defined(PSP)
#include <pspthreadman.h>
#endif #endif
static inline void rarch_sleep(unsigned msec) static inline void rarch_sleep(unsigned msec)
{ {
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) #if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
sys_timer_usleep(1000 * msec); sys_timer_usleep(1000 * msec);
#elif defined(PSP)
sceKernelDelayThread(1000 * msec);
#elif defined(_WIN32) #elif defined(_WIN32)
Sleep(msec); Sleep(msec);
#elif defined(XENON) #elif defined(XENON)