MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / SDL_AddTimerInternal

Function SDL_AddTimerInternal

Source/3rdParty/SDL2/src/timer/SDL_timer.c:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 */
81
82static void SDL_AddTimerInternal(SDL_TimerData *data, SDL_Timer *timer)
83{
84 SDL_Timer *prev, *curr;
85
86 prev = NULL;
87 for (curr = data->timers; curr; prev = curr, curr = curr->next) {
88 if ((Sint32)(timer->scheduled - curr->scheduled) < 0) {
89 break;
90 }
91 }
92
93 /* Insert the timer here! */
94 if (prev) {
95 prev->next = timer;
96 } else {
97 data->timers = timer;
98 }
99 timer->next = curr;
100}
101
102static int SDLCALL SDL_TimerThread(void *_data)
103{

Callers 1

SDL_TimerThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected