rest_callback(3alleg4)
β¨ rest_callback β¨
okay bestie, so this is a page from the Allegro manual β you know, the game programming library? π And this one's about rest_callback, which is basically rest() with a lil glow-up. It's giving "nap time but make it productive" π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void rest_callback(long time, void (*callback)())
π DESCRIPTION π
So it's literally like rest(), no cap β except for non-zero values it continually calls the function you hand it, over and over, the whole time it's waiting for the required time to elapse. Like, it's sitting there waiting but it's also doing the thing the entire time. multitasking icon behavior fr fr π
And if the callback parameter you pass is NULL? Then it does exactly the same thing as just calling rest(). No extra credit, no secret bonus features, just plain old rest. periodt. π«Ά
lowkey important: the callback keeps getting called while the wait happens β that's the whole point, iykyk β¨
π¦ SEE ALSO π¦
and that's the whole vibe, bestie π go forth and wait fabulously π
mwah π β this was Allegro, version 4.4.3, and yes the man page really is just called rest_callback(3alleg4). slay.
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms