MCPcopy Create free account
hub / github.com/crossuo/crossuo / CreateTimer

Method CreateTimer

src/Wisp/WispWindow.cpp:585–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void CWindow::CreateTimer(uint32_t id, int delay)
586{
587 assert(id > 0 && id < countof(timer_table));
588 if (timer_table[id - 1] != 0)
589 {
590 return;
591 }
592
593 auto handle = SDL_AddTimer(delay, TimerCallbackEventPusher, (void *)(intptr_t)(id));
594 timer_table[id - 1] = handle;
595}
596
597void CWindow::RemoveTimer(uint32_t id)
598{

Callers 2

ProcessCommandLineMethod · 0.80
StartReconnectMethod · 0.80

Calls 1

SDL_AddTimerFunction · 0.85

Tested by

no test coverage detected