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