Flutter Engine
timerfd.cc File Reference
#include "flutter/fml/platform/linux/timerfd.h"
#include <sys/types.h>
#include <unistd.h>
#include "flutter/fml/eintr_wrapper.h"
#include <asm/unistd.h>
#include <sys/syscall.h>

Go to the source code of this file.

Namespaces

 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 33 of file timerfd.cc.

Referenced by fml::TimerRearm().

Function Documentation

◆ timerfd_create()

int timerfd_create ( int  clockid,
int  flags 
)

Definition at line 17 of file timerfd.cc.

Referenced by fml::AcquireLooperForThread().

17  {
18  return syscall(__NR_timerfd_create, clockid, flags);
19 }
DEF_SWITCHES_START snapshot asset Path to the directory containing the four files specified by VmSnapshotInstructions and IsolateSnapshotInstructions vm snapshot The VM instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present isolate snapshot The isolate instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present icu symbol Prefix for the symbols representing ICU data linked into the Flutter library dart flags
Definition: switches.h:66

◆ timerfd_settime()

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

Definition at line 21 of file timerfd.cc.

Referenced by fml::TimerRearm().

24  {
25  return syscall(__NR_timerfd_settime, ufc, flags, utmr, otmr);
26 }
DEF_SWITCHES_START snapshot asset Path to the directory containing the four files specified by VmSnapshotInstructions and IsolateSnapshotInstructions vm snapshot The VM instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present isolate snapshot The isolate instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present icu symbol Prefix for the symbols representing ICU data linked into the Flutter library dart flags
Definition: switches.h:66