diff --git a/Source/Threading/Threads/AuOSThread.cpp b/Source/Threading/Threads/AuOSThread.cpp index ad023ebc..29c21f3d 100644 --- a/Source/Threading/Threads/AuOSThread.cpp +++ b/Source/Threading/Threads/AuOSThread.cpp @@ -82,6 +82,11 @@ namespace Aurora::Threading::Threads { this->name_ = info.name.value_or("Aurora Thread"); + if (info.name) + { + this->uNameIdentity_ = AuFnv1a32Runtime(this->name_.data(), this->name_.size()); + } + // maybe we should atomic exchange compare these when needed frogthink this->terminatedSignalLs_ = AuLoop::NewLSEvent(true, false, true); this->terminateSignalLs_ = AuLoop::NewLSEvent(true, false, true); @@ -114,6 +119,7 @@ namespace Aurora::Threading::Threads this->name_ = "System Thread"; this->handle_ = reinterpret_cast(id); this->bNotOwned = true; + this->uNameIdentity_ = AuFnv1a32("System Thread"); } bool DeadTest(); @@ -830,6 +836,7 @@ namespace Aurora::Threading::Threads { this->bNotOwned = true; this->name_ = "Main System Thread"; + this->uNameIdentity_ = AuFnv1a32("Main System Thread"); this->OSAttach(); }