18 #ifndef LIBRETRO_TIMER_H 19 #define LIBRETRO_TIMER_H 22 #define THREAD_SWITCH_POLL (1 << 0) 23 #define THREAD_SWITCH_DELAY (1 << 1) 24 #define THREAD_SWITCH_UPDATE (1 << 2) 26 #include "backends/timer/default/default-timer.h" 27 #include "backends/platform/libretro/include/libretro-defs.h" 31 uint32 _nextSwitchTime;
32 uint32 _spentOnMainThread;
33 uint8 _threadSwitchCaller;
37 void switchThread(uint8 caller = 0);
38 bool checkThread(uint8 caller = 0);
39 uint32 timeToNextSwitch(
void);
40 uint32 spentOnMainThread(
void);
41 uint8 getThreadSwitchCaller(
void);
44 #endif // LIBRETRO_TIMER_H Definition: default-timer.h:32
Definition: libretro-timer.h:29