Skip to main content

id

Function id 

Source
pub unsafe fn id(thread: Thread) -> Option<ThreadId>
Available on crate features take-charge and thread only.
Expand description

Return the id of a thread, or None if the thread has exited.

ยงSafety

thread must point to a valid thread record.