SDL_mutexP

Name

SDL_mutexP -- Lock a mutex

Synopsis

uses
SDL;

function SDL_mutexP( mutex : PSDL_mutex ) : Integer;

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 procedure SDL_LockMutex that make the call to SDL_mutexP(m).

See Also

SDL_CreateMutex , SDL_mutexV