SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | ROUND_RESOLUTION(X) (((X+TIMER_RESOLUTION-1)/TIMER_RESOLUTION)*TIMER_RESOLUTION) |
Functions | |
void | SDL_TicksInit (void) |
void | SDL_TicksQuit (void) |
int | SDL_TimerInit (void) |
void | SDL_TimerQuit (void) |
#define ROUND_RESOLUTION | ( | X | ) | (((X+TIMER_RESOLUTION-1)/TIMER_RESOLUTION)*TIMER_RESOLUTION) |
Definition at line 26 of file SDL_timer_c.h.
Referenced by SDL_InitSubSystem(), and SDL_VideoInit().
Referenced by SDL_Quit().
int SDL_TimerInit | ( | void | ) |
Definition at line 207 of file SDL_timer.c.
References SDL_TimerData::active, SDL_TimerData::nextID, SDL_AtomicGet, SDL_AtomicSet, SDL_CreateMutex, SDL_CreateSemaphore, SDL_CreateThreadInternal(), SDL_DestroyMutex, SDL_timer_data, SDL_TimerQuit(), SDL_TimerThread(), SDL_TimerData::sem, SDL_TimerData::thread, and SDL_TimerData::timermap_lock.
Referenced by SDL_AddTimer(), and SDL_InitSubSystem().
Definition at line 239 of file SDL_timer.c.
References SDL_TimerData::active, SDL_TimerData::freelist, SDL_Timer::next, SDL_TimerMap::next, NULL, SDL_AtomicCAS, SDL_DestroyMutex, SDL_DestroySemaphore, SDL_free, SDL_SemPost, SDL_timer_data, SDL_WaitThread, SDL_TimerData::sem, SDL_TimerData::thread, SDL_TimerData::timermap, SDL_TimerData::timermap_lock, and SDL_TimerData::timers.
Referenced by SDL_QuitSubSystem(), and SDL_TimerInit().