#[no_mangle]
pub extern "C" fn nstd_thread_id(
    handle: &NSTDThreadHandle
) -> NSTDThreadID
Available on crate feature thread only.
Expand description

Returns a thread’s unique identifier.

Parameters:

  • const NSTDThreadHandle *handle - A handle to the thread.

Returns

NSTDThreadID id - The thread’s unique ID.

Panics

Panics if allocating for the thread ID fails.