[#BloombergLP-bslmt-ThreadUtilImpl-04-getThreadName]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl&lt;Platform::PosixThreads&gt;]::getThreadName
:relfileprefix: ../../../
:mrdocs:

Load the name of the current thread into the specified `threadName`&period; Note that this method clears `&ast;threadName` on all platforms other than Linux and Darwin&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutilimpl&lowbar;pthread&period;h&gt;`

[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]#
