Function nstd_sys::thread::nstd_thread_id
source · #[no_mangle]
pub extern "C" fn nstd_thread_id(
handle: &NSTDThreadHandle
) -> NSTDOptionalThreadIDAvailable on crate feature
thread only.Expand description
Returns a thread’s unique identifier.
Parameters:
const NSTDThreadHandle *handle- A handle to the thread.
Returns
NSTDOptionalThreadID id - The thread’s unique ID on success, or an uninitialized “none”
variant on error.