---
name: "SDL_SetInitialized"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SetInitialized"
---

# SDL\_SetInitialized(3)

Finish an initialization state transition.

## NAME

SDL\_SetInitialized - 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)](/SDL_ShouldInit/3.md), **•**(3), [**SDL\_ShouldQuit**(3)](/SDL_ShouldQuit/3.md)
