SDL_mutexP (3) - Linux Manuals
SDL_mutexP: Lock a mutex
NAMESDL_mutexP - Lock a mutex
#include "SDL.h" #include "SDL_thread.h"
Locks the mutex, which was previously created with SDL_CreateMutex. If the mutex is already locked then SDL_mutexP will not return until it is unlocked. Returns 0 on success, or -1 on an error.