一、api简介
NAME
timerfd_create, timerfd_settime, timerfd_gettime -通过文件描述符来告知定时器状态。...#include
int timerfd_create(int clockid, int flags);
int timerfd_settime...timerfd_settime()
启动或关闭定时器。
new_value参数指定计时器的初始到期时间和间隔。...(timerfd, 0, &its, NULL) < 0)
if (timerfd_settime(timerfd, TFD_TIMER_ABSTIME, &its, NULL) < 0)...&its, NULL) < 0)
{
close(l_n32TimerFd);
printf("timerfd_settime