cpp_timer.h
浏览该文件的文档.
1 /*
2  * Copyright (C) 2015-2017 Alibaba Group Holding Limited
3  */
4 
5 #include <stdint.h>
6 #include <k_api.h>
7 
12 namespace AOS {
13 
14 #define Timer_WAIT_FOREVER 0xFFFFFFFFU
15 
21  class Timer
22  {
23  public:
32  kstat_t create(const name_t *name, timer_cb_t cb, uint32_t millisec,
33  void *arg);
34 
40  kstat_t destory(void);
41 
47  kstat_t start(void);
48 
54  kstat_t stop(void);
55 
61  ktimer_t *self(void);
62 
63  private:
67  ktimer_t _timer_def;
68  };
69 
70 }
Timer Class.
Definition: cpp_timer.h:22
kstat_t stop(void)
kstat_t destory(void)
kstat_t create(const name_t *name, timer_cb_t cb, uint32_t millisec, void *arg)
kstat_t start(void)
Definition: cpp_mutex.h:21