[#BloombergLP-bslmt-ThreadAttributes-threadName] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]::threadName :relfileprefix: ../../../ :mrdocs: Return the `threadName` attribute of this object. Note that the returned string reference will be invalidated if `setThreadName` is subsequently called on this object. == Synopsis Declared in `<bslmt_threadattributes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] threadName() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#