* Fix CThread in pthread mode trying to join a detached thread

This commit is contained in:
iProgramInCpp
2023-11-03 02:36:39 +02:00
parent c9eca9e8d2
commit c5f09f5a1c

View File

@@ -45,7 +45,7 @@ CThread::CThread(CThreadFunction func, void* param)
);
#else
pthread_attr_init(&m_thrd_attr);
pthread_attr_setdetachstate(&m_thrd_attr, 1);
//pthread_attr_setdetachstate(&m_thrd_attr, 1);
pthread_create(&m_thrd, &m_thrd_attr, m_func, param);
#endif
}