BloombergLP::bslmt::ThreadUtil::nativeHandle

Return the platform-specific native handle for the specified thread.

Synopsis

Declared in <bslmt_threadutil.h>

static
ThreadUtil::NativeHandle
nativeHandle(Handle const& handle);

Description

Return the platform-specific identifier associated with the thread referred to by the specified handle. The behavior is undefined unless handle was obtained by a call to create or self. Note that the returned native handle may not be a globally unique identifier for the thread (see selfIdAsUint).

Return Value

platform-specific native handle for the thread

Parameters

NameDescription
handlethread whose native handle is returned