[#BloombergLP-bslmt-ThreadUtil-setThreadName] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::setThreadName :relfileprefix: ../../../ :mrdocs: Set the name of the current thread to the specified `threadName`. On platforms other than Linux, Solaris, Darwin and Windows this method has no effect. Note that on those two platforms `threadName` will be truncated to a length of 15 bytes, not including the terminating '0'. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setThreadName(xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& threadName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#