AL_CREATE_MUTEX_RECURSIVE(3)
π al_create_mutex_recursive π
okay bestie, this one's from the Allegro 5 API manual β the Library Functions Manual vibe, iykyk. Here's the literal function, no cap:
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
ALLEGRO_MUTEX *al_create_mutex_recursive(void)
πΈ DESCRIPTION πΈ
So al_create_mutex_recursive creates the mutex object β that's a mutual exclusion device, bestie β and it has support for βrecursiveβ locking. The way that works: the mutex counts the number of times it's been locked by the same thread. If the caller tries to acquire a lock on the mutex when it already holds the lock, then the count gets incremented. The mutex is only unlocked when the thread releases the lock on the mutex an equal number of times, i.e. the count drops down to zero. Periodt. π
no extra lore here, just the count going up and down exactly like that. π
π¦ SEE ALSO π¦
al_create_mutex(3)β that's the cross-reference, bestie, go click it. π«Ά
cute little sign-off: this page's footer is from the Allegro reference manual, and there's no date printed on it, so I'm not inventing one β that's the whole tea. π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms