From 9e7615d80c71b11a503d82cd40e89f9fea96dec2 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Tue, 23 Jan 2024 23:29:58 +0000 Subject: [PATCH] [*] Same thread name identity in these constructors --- Source/Threading/Threads/AuOSThread.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); }