timerapi.h 393 B

123456789101112131415161718192021
  1. #ifndef __TIMER_SVC_H
  2. #define __TIMER_SVC_H
  3. #include <api/timer/api_timer.h>
  4. #include "tmultiplex.h"
  5. class TimerApi : public timer_api
  6. {
  7. public:
  8. TimerApi();
  9. ~TimerApi();
  10. virtual TimerToken timer_add(TimerClient *client, intptr_t id, int ms);
  11. virtual void timer_remove(TimerClient *client, TimerToken token = -1);
  12. protected:
  13. MainTimerMultiplexer multiplex;
  14. RECVS_DISPATCH;
  15. };
  16. #endif