Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
timerfd.cc File Reference
#include "flutter/fml/platform/linux/timerfd.h"
#include <sys/types.h>
#include <unistd.h>
#include <cstring>
#include "flutter/fml/eintr_wrapper.h"
#include "flutter/fml/logging.h"
#include <asm/unistd.h>
#include <sys/syscall.h>

Go to the source code of this file.

Namespaces

namespace  fml
 

Macros

#define NSEC_PER_SEC   1000000000
 

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

◆ NSEC_PER_SEC

#define NSEC_PER_SEC   1000000000

Definition at line 35 of file timerfd.cc.

Function Documentation

◆ timerfd_create()

int timerfd_create ( int  clockid,
int  flags 
)

Definition at line 19 of file timerfd.cc.

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

◆ timerfd_settime()

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

Definition at line 23 of file timerfd.cc.

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