Function SDL_SetInitialized

pub unsafe extern "C" fn SDL_SetInitialized(
    state: *mut SDL_InitState,
    initialized: bool,
)
Available on crate feature dep_sdl3 only.
Expand description

Finish an initialization state transition.

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.

§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