table of contents
other versions
- bookworm 1.2.15+dfsg2-8
- testing 3.2.10+ds-1
- unstable 3.2.10+ds-1
- experimental 3.2.16+ds-1
SDL_CreateMutex(3) | SDL3 FUNCTIONS | SDL_CreateMutex(3) |
NAME¶
SDL_CreateMutex - Create a new mutex.
SYNOPSIS¶
#include <SDL3/SDL_mutex.h>
SDL_Mutex * SDL_CreateMutex(void);
DESCRIPTION¶
All newly-created mutexes begin in the _unlocked_ state.
Calls to SDL_LockMutex() will not return while the mutex is locked by another thread. See SDL_TryLockMutex() to attempt to lock without blocking.
SDL mutexes are reentrant.
RETURN VALUE¶
Returns the initialized and unlocked mutex or NULL on failure; call SDL_GetError() for more information.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
SDL_DestroyMutex(3), SDL_LockMutex(3), SDL_TryLockMutex(3), SDL_UnlockMutex(3)
SDL 3.2.16 | Simple Directmedia Layer |