摘要:
#define EV_TIMER_RESOLUTION 1 /* 1 msec */#define EV_READ_EVENT EPOLLIN#define EV_WRITE_EVENT EPOLLOUTstruct ev_event;struct ev_timer;typedef void ... 阅读全文
摘要:
#define DEFAULT_EPOLL_TIMEOUT 1000 /* 1 sec */static inline uint64_t get_current_msec(){ struct timespec ts; clock_gettime(CLOCK_MONOTONIC, ... 阅读全文