This commit is contained in:
Бранимир Караџић
2024-05-11 19:55:30 -07:00
parent 98c43d8765
commit 0481ee1063
2 changed files with 10 additions and 9 deletions

View File

@@ -132,14 +132,15 @@ namespace bx
m_userData = _userData;
m_stackSize = _stackSize;
if (NULL != _name)
{
strCopy(m_name, sizeof(m_name), _name);
}
else
{
m_name[0] = '\0';
}
if (NULL != _name)
{
BX_WARN(strLen(_name) < BX_COUNTOF(m_name)-1, "Truncating thread name.");
strCopy(m_name, BX_COUNTOF(m_name), _name);
}
else
{
m_name[0] = '\0';
}
ThreadInternal* ti = (ThreadInternal*)m_internal;
#if BX_CRT_NONE