ocean.sys.TimerFD

Linux timer event file descriptor.

Members

Classes

TimerFD
class TimerFD

Timer fd class -- can be used in an allocation-free context if instantiated with the ctor which accepts an exception instance.

Functions

timerfd_create
int timerfd_create(int clockid, int flags)

Creates a new timer object.

timerfd_gettime
int timerfd_gettime(int fd, itimerspec* curr_value)

Returns the next expiration time of fd.

timerfd_settime
int timerfd_settime(int fd, int flags, itimerspec* new_value, itimerspec* old_value)

Sets next expiration time of interval timer source fd to new_value.

Static variables

CLOCK_MONOTONIC
auto CLOCK_MONOTONIC;

<linux/time.h>

TFD_CLOEXEC
auto TFD_CLOEXEC;

Definitions of external constants and functions required to manage timer events.

TFD_NONBLOCK
auto TFD_NONBLOCK;

Definitions of external constants and functions required to manage timer events.

TFD_TIMER_ABSTIME
auto TFD_TIMER_ABSTIME;

Definitions of external constants and functions required to manage timer events.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).