Skip to main content

ThreadHandle

Type Alias ThreadHandle 

Source
pub type ThreadHandle = c_ulong;
Expand description

Opaque POSIX thread identifier (pthread_t).

glibc defines pthread_t as unsigned long int, so c_ulong has the correct size/representation on every target this crate builds for. 0 is used throughout this crate as the “no thread” sentinel (see crate::os::ThreadFn::is_null).