Skip to main content

Module thread

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§

ClockIdNeither apple nor DragonFly BSD nor target_os=espidf nor FreeBSD nor OpenBSD nor Redox nor target_os=vita nor WASI
CLOCK_* constants for use with clock_gettime.
NanosleepRelativeResultNon-Redox
A return type for nanosleep and clock_nanosleep_relative.

Functions§

nanosleepNon-Redox
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.