MPD: thread/Slack.hxx File Reference

MPD 0.20.18

Functions
Slack.hxx File Reference

Go to the source code of this file.

## Functions
static void | SetThreadTimerSlackNS (unsigned long slack_ns)
| Set the current thread's timer slack to the specified number of nanoseconds (requires Linux 2.6.28). More...
static void | SetThreadTimerSlackUS (unsigned long slack_us)
static void | SetThreadTimerSlackMS (unsigned long slack_ms)

## Function Documentation

## ◆ SetThreadTimerSlackMS()

static void SetThreadTimerSlackMS | ( | unsigned long | slack_ms | ) |
| inlinestatic

Definition at line 49 of file Slack.hxx.

## ◆ SetThreadTimerSlackNS()

static void SetThreadTimerSlackNS | ( | unsigned long | slack_ns | ) |
| inlinestatic

Set the current thread's timer slack to the specified number of nanoseconds (requires Linux 2.6.28).

This allows the kernel to merge multiple wakeups, which is a trick to save energy.

Definition at line 33 of file Slack.hxx.

## ◆ SetThreadTimerSlackUS()

static void SetThreadTimerSlackUS | ( | unsigned long | slack_us | ) |
| inlinestatic

Definition at line 43 of file Slack.hxx.