logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_mutexP - Lock a mutex

Description

       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.

       SDL also defines a macro #defineSDL_LockMutex(m)SDL_mutexP(m).

Name

       SDL_mutexP - Lock a mutex

See Also

SDL_CreateMutex, SDL_mutexV

SDL                                          Tue 11 Sep 2001, 23:01                                SDL_mutexP(3)

Synopsis

#include"SDL.h"#include"SDL_thread.h"intSDL_mutexP(SDL_mutex*mutex);

See Also