1SDL_mutexP(3) SDL API Reference SDL_mutexP(3)
2
3
4
6 SDL_mutexP - Lock a mutex
7
9 #include "SDL.h" #include "SDL_thread.h"
10
11 int SDL_mutexP(SDL_mutex *mutex);
12
14 Locks the mutex, which was previously created with SDL_CreateMutex. If
15 the mutex is already locked then SDL_mutexP will not return until it is
16 unlocked. Returns 0 on success, or -1 on an error.
17
18 SDL also defines a macro #define SDL_LockMutex(m) SDL_mutexP(m).
19
21 SDL_CreateMutex, SDL_mutexV
22
23
24
25SDL Tue 11 Sep 2001, 23:01 SDL_mutexP(3)