7#ifndef CORE_FXCRT_CFX_TIMER_H_
8#define CORE_FXCRT_CFX_TIMER_H_
12#include "core/fxcrt/observed_ptr.h"
13#include "core/fxcrt/unowned_ptr.h"
22 using TimerCallback =
void (*)(int32_t idEvent);
26 virtual int32_t
SetTimer(int32_t uElapse, TimerCallback lpTimerFunc) = 0;
51 static void TimerProc(int32_t idEvent);
virtual ~CallbackIface()=default
virtual void OnTimerFired()=0
static constexpr int32_t kInvalidTimerID
virtual void KillTimer(int32_t nTimerID)=0
virtual ~HandlerIface()=default
virtual int32_t SetTimer(int32_t uElapse, TimerCallback lpTimerFunc)=0
static void DestroyGlobals()
CFX_Timer(HandlerIface *pHandlerIface, CallbackIface *pCallbackIface, int32_t nInterval)
static void InitializeGlobals()