Some runtime platform do not have thread support

This commit is contained in:
Alam Ed Arias 2025-03-25 15:56:46 -04:00
parent 8143e34e39
commit 5595855878
2 changed files with 3 additions and 2 deletions

View file

@ -2444,10 +2444,8 @@ INT32 I_StartupSystem(void)
SDL_version SDLlinked;
SDL_VERSION(&SDLcompiled)
SDL_GetVersion(&SDLlinked);
#ifdef HAVE_THREADS
I_start_threads();
I_AddExitFunc(I_stop_threads);
#endif
I_StartupConsole();
#ifdef NEWSIGNALHANDLER
// This is useful when debugging. It lets GDB attach to

View file

@ -185,7 +185,10 @@ I_spawn_thread (
);
if (! th->thread)
{
I_OutputMsg("I_spawn_thread failed to make thread %s: %s\n", name, SDL_GetError());
abort();
}
}
}
I_unlock_mutex(i_thread_pool_mutex);