Simplify named_thread construction

This commit is contained in:
Eladash 2021-05-01 09:34:52 +03:00 committed by Ivan
parent b8477a470f
commit daa53b77cf
12 changed files with 70 additions and 38 deletions

View file

@ -2316,9 +2316,9 @@ std::string thread_ctrl::get_name_cached()
return *name_cache;
}
thread_base::thread_base(native_entry entry, std::string_view name)
thread_base::thread_base(native_entry entry, std::string name)
: entry_point(entry)
, m_tname(make_single<std::string>(name))
, m_tname(make_single_value(std::move(name)))
{
}