mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-19 16:51:53 +00:00
Some runtime platform do not have thread support
This commit is contained in:
parent
8143e34e39
commit
5595855878
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue