al_create_mutex

ALLEGRO_MUTEX *al_create_mutex(void)
Introduced in 5.0.0

Create the mutex object (a mutual exclusion device). The mutex may or may not support "recursive" locking.

Returns the mutex on success or NULL on error.

See also: al_create_mutex_recursive.

Examples: ex_threads2


Most helpful discussions: