[#BloombergLP-bslmt-ThreadUtil-getThreadName]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::getThreadName
:relfileprefix: ../../../
:mrdocs:

Load the name of the current thread into the specified string&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
getThreadName(xref:bsl/string.adoc[bsl::string]* threadName);
----

== Description

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *threadName*
| receives the current thread&apos;s name
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
