[#BloombergLP-bslmt-ThreadUtil-selfIdAsUint64]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::selfIdAsUint64
:relfileprefix: ../../../
:mrdocs:

Return a unique 64&hyphen;bit integral identifier for the current 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]
selfIdAsUint64();
----

== Description

Return an integral identifier that can be used to uniquely identify the current thread within the current process&period; Note that this representation is particularly useful for logging purposes&period; Also note that this value is valid only until the thread terminates, and may be reused thereafter&period;

== Return Value

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


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