Always try to use exception-based thread naming

* VS2015 doesn't support the windows 10 thread naming so we want to do both if
  possible
This commit is contained in:
baldurk
2026-03-13 11:40:17 +00:00
parent e48450cc53
commit 09bce82078
+1 -3
View File
@@ -3563,10 +3563,8 @@ void LambdaThread::windowsSetName()
GetModuleHandleA("kernel32.dll"), "SetThreadDescription");
if(setThreadDesc)
{
setThreadDesc(GetCurrentThread(), m_Name.toStdWString().c_str());
}
else
{
// don't throw the exception if there's no debugger present
if(!IsDebuggerPresent())