TimerFD

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

Constructors

this
this(bool realtime)

Constructor.

this
this(TimerException e, bool realtime)

Constructor. Creates a timer event file descriptor.

Destructor

~this
~this()

Destructor. Destroys the timer event file descriptor.

Members

Classes

TimerException
class TimerException

Exception class, thrown on errors with timer functions

Functions

fileHandle
Handle fileHandle()

Required by ISelectable interface.

handle
ulong handle()

Should be called when the timer event has fired.

reset
itimerspec reset()

Resets/disarms the timer.

set
itimerspec set(timespec first, timespec interval)

Sets next expiration time of interval timer.

set
itimerspec set(time_t first_s, uint first_ms, time_t interval_s, uint interval_ms)

Sets next expiration time of interval timer.

time
itimerspec time()

Returns the next expiration time.

Variables

absolute
bool absolute;

Set to true to use an absolute or false for a relative timer. On default a relative timer is used.

Inherited Members

From ISelectable

fileHandle
Handle fileHandle()

Models a handle-oriented device.

Meta