[#BloombergLP-bslmt-ThreadUtilImpl-04-getThreadName] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl<Platform::PosixThreads>]::getThreadName :relfileprefix: ../../../ :mrdocs: Load the name of the current thread into the specified `threadName`. Note that this method clears `*threadName` on all platforms other than Linux and Darwin. == Synopsis Declared in `<bslmt_threadutilimpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void getThreadName(xref:bsl/string.adoc[bsl::string]* threadName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#