1al_create_mutex_recursive(3) al_create_mutex_recursive(3)
2
3
4
6 al_create_mutex_recursive - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 ALLEGRO_MUTEX *al_create_mutex_recursive(void)
12
14 Create the mutex object (a mutual exclusion device), with support for
15 "recursive" locking. That is, the mutex will count the number of times
16 it has been locked by the same thread. If the caller tries to acquire
17 a lock on the mutex when it already holds the lock then the count is
18 incremented. The mutex is only unlocked when the thread releases the
19 lock on the mutex an equal number of times, i.e. the count drops down
20 to zero.
21
23 al_create_mutex(3).
24
25
26
27Allegro reference manual al_create_mutex_recursive(3)