LibThreading: Remove handling of null thread name for Thread

A Thread name should always be provided (and currently is).
This commit is contained in:
Shannon Booth 2026-02-19 13:26:10 +01:00 committed by Shannon Booth
parent 005aa1af62
commit ec19672031
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ namespace Threading {
Thread::Thread(Function<intptr_t()> action, StringView thread_name)
: m_action(move(action))
, m_thread_name(thread_name.is_null() ? ""sv : thread_name)
, m_thread_name(thread_name)
{
}

View file

@ -76,7 +76,7 @@ public:
bool has_exited() const;
private:
explicit Thread(ESCAPING Function<intptr_t()> action, StringView thread_name = {});
explicit Thread(ESCAPING Function<intptr_t()> action, StringView thread_name);
Function<intptr_t()> m_action;
pthread_t m_tid {};
ByteString m_thread_name;