Module thread

Source
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 with clock_gettime.
NanosleepRelativeResult
A return type for nanosleep and clock_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.

Type Aliases§

Nsecs
A type for the tv_nsec field of Timespec.
Secs
A type for the tv_sec field of Timespec.