comment out Thread_Detach code

This commit is contained in:
headshot2017 2024-03-08 18:23:43 -04:00
parent 7ee08a5c16
commit 05a7e82582

View File

@ -253,10 +253,11 @@ void Thread_Start2(void* handle, Thread_StartFunc func) {
}
void Thread_Detach(void* handle) {
pthread_t* ptr = (pthread_t*)handle;
// crashes when loading singleplayer. pthread_detach isn't implemented, apparently?
/*pthread_t* ptr = (pthread_t*)handle;
int res = pthread_detach(*ptr);
if (res) Logger_Abort2(res, "Detaching thread");
Mem_Free(ptr);
Mem_Free(ptr);*/
}
void Thread_Join(void* handle) {