[#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&hyphen;bit identifier for the current kernel thread&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

[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&period; Note that this identifier may be different from the identifier returned by `selfIdAsUint64()`&period; Also note that this value is valid only until the thread terminates, and may be reused thereafter&period; 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)&period;

== Return Value

unique 64&hyphen;bit identifier for the current kernel thread


[.small]#Created with https://www.mrdocs.com[MrDocs]#
