[#BloombergLP-bslmt-ThreadUtil-selfKernelIdAsUint64] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::selfKernelIdAsUint64 :relfileprefix: ../../../ :mrdocs: Return a unique 64‐bit identifier for the current kernel thread. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] selfKernelIdAsUint64(); ---- == Description Return an integral identifier that can be used to uniquely identify the kernel thread within the current process. Note that this identifier may be different from the identifier returned by `selfIdAsUint64()`. Also note that this value is valid only until the thread terminates, and may be reused thereafter. Also note that this method returns the kernel thread id only on the operating systems which implement that (on Windows, the thread ids returned by both methods are the same). == Return Value unique 64‐bit identifier for the current kernel thread [.small]#Created with https://www.mrdocs.com[MrDocs]#