Fix naming native threads on Linux and Android

This commit is contained in:
2021-07-13 11:46:58 +02:00
parent 121b08801a
commit ef163b80a7
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ protected:
int32 Start(pthread_attr_t& attr) override
{
const int result = pthread_create(&_thread, &attr, ThreadProc, this);
if (result != 0)
if (result == 0)
pthread_setname_np(_thread, _name.ToStringAnsi().Get());
return result;
}
+1 -1
View File
@@ -46,7 +46,7 @@ protected:
int32 Start(pthread_attr_t& attr) override
{
const int result = pthread_create(&_thread, &attr, ThreadProc, this);
if (result != 0)
if (result == 0)
pthread_setname_np(_thread, _name.ToStringAnsi().Get());
return result;
}