From 5595855878853b19ba29c9d31baeab8559d0a477 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias <alam@srb2.org> Date: Tue, 25 Mar 2025 15:56:46 -0400 Subject: [PATCH] Some runtime platform do not have thread support --- src/sdl/i_system.c | 2 -- src/sdl/i_threads.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index f5e6614d7c..1e0fe874cd 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -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 diff --git a/src/sdl/i_threads.c b/src/sdl/i_threads.c index c05936072e..99b4451031 100644 --- a/src/sdl/i_threads.c +++ b/src/sdl/i_threads.c @@ -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); -- GitLab