refactor: use std::string for thread names

This commit is contained in:
stickies-v
2022-08-31 16:30:35 +01:00
parent 29d540b7ad
commit 97f5b20c12
5 changed files with 10 additions and 7 deletions

View File

@@ -6,12 +6,13 @@
#define BITCOIN_UTIL_THREAD_H
#include <functional>
#include <string>
namespace util {
/**
* A wrapper for do-something-once thread functions.
*/
void TraceThread(const char* thread_name, std::function<void()> thread_func);
void TraceThread(std::string_view thread_name, std::function<void()> thread_func);
} // namespace util