We don't need to be the calling thread to set a thread name.

This commit is contained in:
Dr. Chat 2015-07-17 19:50:04 -05:00
parent fd893f730b
commit 7595df4876
1 changed files with 1 additions and 2 deletions

View File

@ -315,8 +315,7 @@ class Win32Thread : public Win32Handle<Thread> {
~Win32Thread() = default;
void set_name(std::string name) override {
AssertCallingThread();
xe::threading::set_name(name);
xe::threading::set_name(handle_, name);
Thread::set_name(name);
}