5#ifndef FLUTTER_FML_PLATFORM_LINUX_TIMERFD_H_
6#define FLUTTER_FML_PLATFORM_LINUX_TIMERFD_H_
8#include "flutter/fml/time/time_point.h"
11#if __has_include(<sys/timerfd.h>) && \
12 (!defined(__ANDROID_API__) || __ANDROID_API__ >= 19)
17#include <sys/timerfd.h>
19#define FML_TIMERFD_AVAILABLE 1
23#define FML_TIMERFD_AVAILABLE 0
27#include <linux/time.h>
29#define TFD_TIMER_ABSTIME (1 << 0)
30#define TFD_TIMER_CANCEL_ON_SET (1 << 1)
32#define TFD_CLOEXEC O_CLOEXEC
33#define TFD_NONBLOCK O_NONBLOCK
39 const struct itimerspec* utmr,
40 struct itimerspec* otmr);
FlutterSemanticsFlag flags
bool TimerRearm(int fd, fml::TimePoint time_point)
Rearms the timer to expire at the given time point.
int timerfd_settime(int ufc, int flags, const struct itimerspec *utmr, struct itimerspec *otmr)
int timerfd_create(int clockid, int flags)