mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Fix CThread in pthread mode trying to join a detached thread
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user