#[no_mangle]
pub extern "C" fn nstd_thread_id(
    handle: &NSTDThreadHandle
) -> NSTDOptionalThreadID
Available 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.