DOKK / manpages / debian 13 / libsdl3-doc / SDL_SetInitialized.3.en
SDL_SetInitialized(3) SDL3 FUNCTIONS SDL_SetInitialized(3)

SDL_SetInitialized - Finish an initialization state transition.

Defined in SDL3/SDL_mutex.h

#include "SDL3/SDL.h"
void SDL_SetInitialized(SDL_InitState *state, bool initialized);

This function sets the status of the passed in state to

SDL_INIT_STATUS_INITIALIZED or

SDL_INIT_STATUS_UNINITIALIZED and allows any threads waiting for the status to proceed.

the initialization state to check.
the new initialization state.

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

(3), SDL_ShouldInit(3), (3), SDL_ShouldQuit(3)

SDL 3.2.10 Simple Directmedia Layer