---
name: "al_unlock_mutex"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_unlock_mutex/3alleg5"
---

# al\_unlock\_mutex(3alleg5)

Allegro 5 API

## NAME

al\_unlock\_mutex - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_unlock_mutex(ALLEGRO_MUTEX *mutex)
  ```

## DESCRIPTION

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(3alleg5).
