fix for last commit

This commit is contained in:
2024-12-25 19:37:55 +03:00
parent b50eeaef46
commit 6e5556969d

View File

@@ -774,10 +774,10 @@ bool PIThread::_startThread(void * func) {
tn_data.resize(16);
tn_data.back() = 0;
# ifdef MAC_OS
pthread_setname_np(tn_data.data());
pthread_setname_np((const char *)tn_data.data());
pthread_threadid_np(PRIVATE->thread, (__uint64_t *)&tid_);
# else
pthread_setname_np(PRIVATE->thread, tn_data.data());
pthread_setname_np(PRIVATE->thread, (const char *)tn_data.data());
# endif
setPriority(priority_);
return true;