HomeClusterLabs Projects

Low: pacemakerd: use high-resolution sleep functions if available

Description

Low: pacemakerd: use high-resolution sleep functions if available

In configure, detect whether nanosleep() and usleep() are available.

In libcrmcommon, define an internal API for sub-second sleep that uses
nanosleep(), usleep(), or select() as available.

In pacemakerd, use the new function to sleep instead of poll().

This is not hugely significant but is portable and readable, and allows us to
use sub-second sleeps elsewhere in the future if desired.

Details

Provenance
kgaillotAuthored on Jan 22 2021, 6:31 PM
Parents
rPd6df1629d74c: Doc: Pacemaker Administration: correct header levels
Branches
Unknown
Tags
Unknown

Event Timeline