Penguin
Note: You are viewing an old revision of this page. View the current version.

SDL_mutexP

SDL_mutexP

NAME SYNOPSIS DESCRIPTION SEE ALSO


NAME

SDL_mutexP- Lock a mutex

SYNOPSIS

#include

int SDL_mutexP(SDL_mutex *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 #define SDL_LockMutex?(m) SDL_mutexP(m).

SEE ALSO

SDL_CreateMutex?, SDL_mutexV


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.