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

Set the name of the current thread to the specified `threadName`&period; On all platforms other than Linux and Darwin this method has no effect&period; Note that on those two platforms `threadName` will be truncated to a length of 15 bytes, not including the terminating &apos;0&apos;&period;

== Synopsis

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

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