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
}
AOS::Timer
Timer Class.
Definition:
cpp_timer.h:22
AOS::Timer::stop
kstat_t stop(void)
AOS::Timer::destory
kstat_t destory(void)
AOS::Timer::create
kstat_t create(const name_t *name, timer_cb_t cb, uint32_t millisec, void *arg)
AOS::Timer::start
kstat_t start(void)
AOS
Definition:
cpp_mutex.h:21