Available on crate feature
linux
only.Expand description
Linux-specific extensions to std::thread
.
Structs§
- Linux
Timespec - Represents the
timespec
structure from libc. Time in seconds and nanoseconds.
Functions§
- linux_
getpid unsafe_syscall
- Returns the current process number.
- linux_
sleep unsafe_syscall
- Suspends execution of calling thread for
duration
. - linux_
sys_ ⚠getpid unsafe_syscall
- Performs a
getpid
syscall. - linux_
sys_ ⚠nanosleep unsafe_syscall
- Performs a
nanosleep
syscall.