[#BloombergLP-bslmt-ThreadUtilImpl-04-selfId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl<Platform::PosixThreads>]::selfId :relfileprefix: ../../../ :mrdocs: Return a unique identifier for the current thread in this process. == Synopsis Declared in `<bslmt_threadutilimpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bslmt/ThreadUtilImpl-04/Id.adoc[ThreadUtilImpl<bslmt::Platform::PosixThreads>::Id] selfId(); ---- == Description Return an identifier that can be used to uniquely identify the current thread within the current process. Note that the id is only valid until the thread terminates and may be reused thereafter. == Return Value unique identifier for the current thread within this process [.small]#Created with https://www.mrdocs.com[MrDocs]#