[*] bNoThreadNames option wasnt respected

This commit is contained in:
Reece Wilson 2023-07-30 10:00:54 +01:00
parent 86afd39dc3
commit c889af13e5

View File

@ -370,6 +370,10 @@ namespace Aurora::Threading::Threads
void OSThread::SetName(const AuString &name) void OSThread::SetName(const AuString &name)
{ {
if (gRuntimeConfig.threadingConfig.bNoThreadNames)
{
return;
}
this->name_ = name; this->name_ = name;
this->UpdateName(); this->UpdateName();
} }
@ -617,6 +621,11 @@ namespace Aurora::Threading::Threads
void OSThread::UpdateName() void OSThread::UpdateName()
{ {
if (gRuntimeConfig.threadingConfig.bNoThreadNames)
{
return;
}
#if defined(AURORA_IS_MODERNNT_DERIVED) #if defined(AURORA_IS_MODERNNT_DERIVED)
if (this->handle_ == INVALID_HANDLE_VALUE) if (this->handle_ == INVALID_HANDLE_VALUE)