Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ void RenameThreadPool(ctpl::thread_pool& tp, const char* baseName);
/**
* .. and a wrapper that just calls func once
*/
template <typename Callable> void TraceThread(const char* name, Callable func)
template <typename Callable> void TraceThread(const std::string name, Callable func)
{
std::string s = strprintf("dash-%s", name);
std::string s = "dash-" + name;
RenameThread(s.c_str());
try
{
Expand All @@ -450,7 +450,7 @@ template <typename Callable> void TraceThread(const char* name, Callable func)
throw;
}
catch (...) {
PrintExceptionContinue(std::current_exception(), name);
PrintExceptionContinue(std::current_exception(), name.c_str());
throw;
}
}
Expand Down