LibThreading: Remove handling of null thread name for Thread
A Thread name should always be provided (and currently is).
This commit is contained in:
parent
005aa1af62
commit
ec19672031
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue