Flutter Engine
timerfd.h File Reference
#include "flutter/fml/time/time_point.h"
#include <sys/types.h>
#include <linux/time.h>

Go to the source code of this file.

Namespaces

 fml
 

Macros

#define FML_TIMERFD_AVAILABLE   0
 
#define TFD_TIMER_ABSTIME   (1 << 0)
 
#define TFD_TIMER_CANCEL_ON_SET   (1 << 1)
 
#define TFD_CLOEXEC   O_CLOEXEC
 
#define TFD_NONBLOCK   O_NONBLOCK
 

Functions

int timerfd_create (int clockid, int flags)
 
int timerfd_settime (int ufc, int flags, const struct itimerspec *utmr, struct itimerspec *otmr)
 
bool fml::TimerRearm (int fd, fml::TimePoint time_point)
 Rearms the timer to expire at the given time point. More...
 
bool fml::TimerDrain (int fd)
 

Macro Definition Documentation

◆ FML_TIMERFD_AVAILABLE

#define FML_TIMERFD_AVAILABLE   0

Definition at line 23 of file timerfd.h.

◆ TFD_CLOEXEC

#define TFD_CLOEXEC   O_CLOEXEC

Definition at line 32 of file timerfd.h.

Referenced by fml::AcquireLooperForThread().

◆ TFD_NONBLOCK

#define TFD_NONBLOCK   O_NONBLOCK

Definition at line 33 of file timerfd.h.

Referenced by fml::AcquireLooperForThread().

◆ TFD_TIMER_ABSTIME

#define TFD_TIMER_ABSTIME   (1 << 0)

Definition at line 29 of file timerfd.h.

Referenced by fml::TimerRearm().

◆ TFD_TIMER_CANCEL_ON_SET

#define TFD_TIMER_CANCEL_ON_SET   (1 << 1)

Definition at line 30 of file timerfd.h.

Function Documentation

◆ timerfd_create()

int timerfd_create ( int  clockid,
int  flags 
)

Definition at line 18 of file timerfd.cc.

Referenced by fml::AcquireLooperForThread().

18  {
19  return syscall(__NR_timerfd_create, clockid, flags);
20 }
FlutterSemanticsFlag flags

◆ timerfd_settime()

int timerfd_settime ( int  ufc,
int  flags,
const struct itimerspec *  utmr,
struct itimerspec *  otmr 
)

Definition at line 22 of file timerfd.cc.

Referenced by fml::TimerRearm().

25  {
26  return syscall(__NR_timerfd_settime, ufc, flags, utmr, otmr);
27 }
FlutterSemanticsFlag flags