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

# SDL\_Condition(3type)

A means to block multiple threads until a condition is satisfied.

## NAME

SDL\_Condition - A means to block multiple threads until a condition is satisfied.

## HEADER FILE

Defined in SDL3/SDL\_mutex.h

## SYNOPSIS

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

**typedef struct SDL\_Condition SDL\_Condition;**

## DESCRIPTION

Condition variables, paired with an  **SDL\_Mutex** , let an app halt multiple threads until a condition has occurred, at which time the app can release one or all waiting threads.

Wikipedia has a thorough explanation of the concept:

https://en.wikipedia.org/wiki/Condition\_variable

## AVAILABILITY

This struct is available since SDL 3.2.0.
