[#util-TraceThread]
= xref:util.adoc[util]::TraceThread
:relfileprefix: ../
:mrdocs:

A wrapper for do&hyphen;something&hyphen;once thread functions&period;

== Synopsis

Declared in `&lt;util&sol;thread&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
TraceThread(
    std::string&lowbar;view thread&lowbar;name,
    std::function&lt;void()&gt; thread&lowbar;func);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *thread&lowbar;name*
| Name assigned to the thread for logging and tracing&period;
| *thread&lowbar;func*
| Function executed once on the new thread&period;
|===


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