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

Return a unique identifier for the current thread in this process&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]
selfId();
----

== Description

Return an identifier that can be used to uniquely identify the current thread within the current process&period; Note that the id is only valid until the thread terminates and may be reused thereafter&period;

== Return Value

unique identifier for the current thread within this process


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