HomeFreeBSD

Add sem_clockwait_np()

Description

Add sem_clockwait_np()

This function allows the caller to specify the reference clock
and choose between absolute and relative mode. In relative mode,
the remaining time can be returned.

The API is similar to clock_nanosleep(3). Thanks to Ed Schouten
for that suggestion.

While I'm here, reduce the sleep time in the semaphore "child"
test to greatly reduce its runtime. Also add a reasonable timeout.

Reviewed by: ed (userland)
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D9656

Details

Provenance
vangyzenAuthored on
Reviewer
ed
Differential Revision
D9656: Add sem_clockwait_np()
Parents
rS314178: Merge ^/head r314129 through r314177.
Branches
Unknown
Tags
Unknown