15 std::function<
void()> thread_func) {
18 LogPrintf(
"%s thread start\n", thread_name);
20 LogPrintf(
"%s thread exit\n", thread_name);
21 }
catch (
const std::exception &e) {
void PrintExceptionContinue(const std::exception *pex, std::string_view thread_name)
void TraceThread(std::string_view thread_name, std::function< void()> thread_func)
A wrapper for do-something-once thread functions.
void ThreadRename(std::string &&)
Rename a thread both in terms of an internal (in-memory) name as well as its system thread name.