---
name: "SDL_CreateCondition"
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_CreateCondition"
---

# SDL\_CreateCondition(3)

Create a condition variable.

## NAME

SDL\_CreateCondition - Create a condition variable.

## HEADER FILE

Defined in SDL3/SDL\_mutex.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**SDL\_Condition \* SDL\_CreateCondition(void);**

## RETURN VALUE

( **SDL\_Condition**\
  \*) Returns a new condition variable or NULL on failure; call  **SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_BroadcastCondition**(3)](/SDL_BroadcastCondition/3.md), **•**(3), [**SDL\_SignalCondition**(3)](/SDL_SignalCondition/3.md), **•**(3), [**SDL\_WaitCondition**(3)](/SDL_WaitCondition/3.md), **•**(3), [**SDL\_WaitConditionTimeout**(3)](/SDL_WaitConditionTimeout/3.md), **•**(3), [**SDL\_DestroyCondition**(3)](/SDL_DestroyCondition/3.md)
