Available on crate feature
thread only.Expand description
Thread-associated operations.
Structs§
- Timespec
struct timespec—A quantity of time in seconds plus nanoseconds.
Enums§
- ClockId
CLOCK_*constants for use withclock_gettime.- Nanosleep
Relative Result - A return type for
nanosleepandclock_nanosleep_relative.
Functions§
- clock_
nanosleep_ absolute clock_nanosleep(id, TIMER_ABSTIME, request, NULL)—Sleeps until an absolute time on a given clock.- clock_
nanosleep_ relative clock_nanosleep(id, 0, request, remain)—Sleeps for a duration on a given clock.- nanosleep
nanosleep(request, remain)—Sleeps for a duration.- sched_
yield sched_yield()—Hints to the OS that other processes should run.