BloombergLP::bslmt::ThreadUtilImpl<Platform::PosixThreads>::selfKernelIdAsUint64

Return a unique 64-bit identifier for the current kernel thread.

Synopsis

Declared in <bslmt_threadutilimpl_pthread.h>

static
bsls::Types::Uint64
selfKernelIdAsUint64();

Description

Return an integral identifier of the current thread used by the operating system. Note that kernel thread ID is different from the user-space thread ID returned by selfIdAsUint64(). Note that this value is only valid until the thread terminates and may be reused thereafter.

Return Value

kernel thread identifier as a 64-bit unsigned integer