Module rustix::thread

Documentation

Thread-associated operations.

Structs

Flags for use with futex.

Enums

Operations for use with futex.

A return type for nanosleep and clock_nanosleep_relative.

Functions

clock_nanosleep_absolute any(linux_raw, all(libc, not(any(target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", target_os = "ios", target_os = "macos", target_os = "openbsd", target_os = "redox", target_os = "wasi",))))

clock_nanosleep(id, TIMER_ABSTIME, request, NULL)—Sleeps until an absolute time on a given clock.

clock_nanosleep_relative any(linux_raw, all(libc, not(any(target_os = "dragonfly", target_os = "emscripten", target_os = "freebsd", target_os = "ios", target_os = "macos", target_os = "redox", target_os = "openbsd", target_os = "wasi",))))

clock_nanosleep(id, 0, request, remain)—Sleeps for a duration on a given clock.

futex This function is unsafe to use

futex(uaddr, op, val, utime, uaddr2, val3)

gettid()—Returns the thread ID.

nanosleep(request, remain)—Sleeps for a duration.