ev_timer结构体:
typedef struct ev_timer
{
int active; /* 是否已经激活 */
int pending; /* 是否事件易产生,需要执行回调 */
int priority; /* 事件优先级 */
void *data; /* rw */
void (*cb)(struct ev_loop *loop, struct ev_timer *w, int revents)
ev_timer结构体:
typedef struct ev_timer
{
int active; /* 是否已经激活 */
int pending; /* 是否事件易产生,需要执行回调 */
int priority; /* 事件优先级 */
void *data; /* rw */
void (*cb)(struct ev_loop *loop, struct ev_timer *w, int revents)