SDL_Mutex(3type)

SDL_Mutex3type

A means to serialize access to a resource between threads.

Usage

#include "SDL3/SDL.h"

typedef struct SDL_Mutex SDL_Mutex;

Header file

Defined in SDL3/SDL_mutex.h

Overview

Mutexes (short for "mutual exclusion") are a synchronization primitive that allows exactly one thread to proceed at a time.

Wikipedia has a thorough explanation of the concept:

https://en.wikipedia.org/wiki/Mutex

Availability

This struct is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.