[#BloombergLP-bslmt-ThreadUtilImpl-04-handleToId]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl&lt;Platform::PosixThreads&gt;]::handleToId
:relfileprefix: ../../../
:mrdocs:

Return the unique identifier for the thread with the specified handle&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutilimpl&lowbar;pthread&period;h&gt;`

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

== Description

Return the unique identifier of the thread having the specified `threadHandle` within the current process&period; Note that this value is only valid until the thread terminates and may be reused thereafter&period;

== Return Value

unique identifier of the thread within the current process

== Parameters

[cols="1,4"]
|===
| Name| Description
| *threadHandle*
| handle of the thread whose identifier is returned
|===


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