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

Return the unique identifier of the thread having the specified `threadHandle` within the current process&period; The behavior is undefined unless `handle` was obtained by a call to `create` or `self`&period; Note that this value is valid only until the thread terminates, and may be reused thereafter&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslmt/ThreadUtil/Id.adoc[ThreadUtil::Id]
handleToId(xref:BloombergLP/bslmt/ThreadUtil/Handle.adoc[Handle] const& threadHandle);
----


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