Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimerfdCancelled = errors.New("Timerfd was cancelled due to discontinuous change")
ErrTimerfdCancelled is the error returned when timer is cancelled due to discontinuous clock change. See man timerfd_settime for details.
Functions ¶
This section is empty.
Types ¶
type Timerfd ¶
type Timerfd struct {
// contains filtered or unexported fields
}
Timerfd provides higher-level abstraction for Linux-specific timerfd timers.
func NewRealtimeTimerfd ¶
NewRealtimeTimerfd returns a Timerfd backed by CLOCK_REALTIME.
func (*Timerfd) Close ¶
Close closes the underlying timerfd descriptor.
func (*Timerfd) GetClockid ¶
GetClockid returns the clock id that this timerfd uses.
func (*Timerfd) Settime ¶
func (t *Timerfd) Settime(newValue *unix.ItimerSpec, oldValue *unix.ItimerSpec, absolute bool, cancelOnSet bool) error
Settime arms or disarms the timer. See man timerfd_settime for details.
Click to show internal directories.
Click to hide internal directories.