LOCK_FUNCTION(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– NAME πŸ’–

LOCK_FUNCTION β€” locks the memory of a function used by a timer. This is from the Allegro manual, section 3, and it's part of the Allegro game programming library. No cap. ✨


✨ SYNOPSIS ✨

okay so the synopsis is giving very minimal, very iconic:

#include <allegro.h>

Macro LOCK_FUNCTION(function_name);

🌸 DESCRIPTION 🌸

okay bestie, here's the tea: due to interrupts, you are required to lock all the memory used by your timer routines. That's not a suggestion, that's the rule. πŸ’…

for a more detailed explanation and a usage example, go read the description of install_int_ex(). 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

the girls that reference each other:


mwah πŸ’‹ this was Allegro version 4.4.3, and yes, you just read the LOCK_FUNCTION(3) page. periodt. 🫢

πŸ“¦ where this page comes from