1al_lock_mutex(3)                                              al_lock_mutex(3)
2
3
4

NAME

6       al_lock_mutex - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_lock_mutex(ALLEGRO_MUTEX *mutex)
12

DESCRIPTION

14       Acquire  the  lock on mutex.  If the mutex is already locked by another
15       thread, the call will block  until  the  mutex  becomes  available  and
16       locked.
17
18       If  the  mutex is already locked by the calling thread, then the behavā€
19       iour depends on whether the mutex was created  with  al_create_mutex(3)
20       or  al_create_mutex_recursive(3).  In the former case, the behaviour is
21       undefined; the most likely behaviour is deadlock.  In the latter  case,
22       the  count  in  the  mutex will be incremented and the call will return
23       immediately.
24

SEE ALSO

26       al_unlock_mutex(3).
27
28       We don't yet have al_mutex_trylock.
29
30
31
32Allegro reference manual                                      al_lock_mutex(3)
Impressum