util::TraceThread

A wrapper for do-something-once thread functions.

Synopsis

Declared in <util/thread.h>

void
TraceThread(
    std::string_view thread_name,
    std::function<void()> thread_func);

Parameters

NameDescription
thread_nameName assigned to the thread for logging and tracing.
thread_funcFunction executed once on the new thread.