---
name: "SDL_CreateCond"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_CreateCond"
---

# SDL\_CreateCond(3)

Create a condition variable

## NAME

SDL\_CreateCond - Create a condition variable

## SYNOPSIS

**#include "SDL.h"** **#include "SDL\_thread.h"**

**SDL\_cond \*SDL\_CreateCond**(**void**);

## DESCRIPTION

Creates a condition variable.

## EXAMPLES

```
SDL_cond *cond;
cond=SDL_CreateCond();
.
.
/* Do stuff */
.
.
SDL_DestroyCond(cond);
```

## SEE ALSO

**SDL\_DestroyCond**, **SDL\_CondWait**, **SDL\_CondSignal**
