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

Name

Description

thread_name

Name assigned to the thread for logging and tracing.

thread_func

Function executed once on the new thread.

Created with MrDocs