[#util-TraceThread] = xref:util.adoc[util]::TraceThread :relfileprefix: ../ :mrdocs: A wrapper for do‐something‐once thread functions. == Synopsis Declared in `<util/thread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void TraceThread( std::string_view thread_name, std::function<void()> thread_func); ---- == Parameters [cols="1,4"] |=== | Name| Description | *thread_name* | Name assigned to the thread for logging and tracing. | *thread_func* | Function executed once on the new thread. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#