SDL_SetInitialized - Man Page

Finish an initialization state transition.

Header File

Defined in SDL3/SDL_mutex.h

Synopsis

#include "SDL3/SDL.h"

void SDL_SetInitialized(SDL_InitState *state, bool initialized);

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.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

See Also

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

Referenced By

SDL_ShouldInit(3), SDL_ShouldQuit(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS