al_unlock_mutex

void al_unlock_mutex(ALLEGRO_MUTEX *mutex)
Introduced in 5.0.0

Release the lock on mutex if the calling thread holds the lock on it.

If the calling thread doesn't hold the lock, or if the mutex is not locked, undefined behaviour results.

See also: al_lock_mutex.

Examples: ex_threads2


Most helpful discussions:

Other recent discussions: