Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_SetInitialized - Finish an initialization state transition.

Availability

       This function is available since SDL 3.2.0.

Description

       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.

Function Parameters

state  the initialization state to check.

       initialized
              the new initialization state.

Name

       SDL_SetInitialized - Finish an initialization state transition.

See Also

SDL_ShouldInit(3), SDL_ShouldQuit(3)

Simple Directmedia Layer                           SDL 3.2.20                              SDL_SetInitialized(3)

Synopsis

#include<SDL3/SDL_mutex.h>voidSDL_SetInitialized(SDL_InitState*state,boolinitialized);

Thread Safety

       It is safe to call this function from any thread.

See Also