al_pause_event_queue(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_pause_event_queue ✨

okay bestie so this one lives in the Allegro 5 API (yes, the 3alleg5 manual, we been knew) and it's literally the chill-pill for your event queue πŸ’ŠπŸ«Ά


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

void al_pause_event_queue(ALLEGRO_EVENT_QUEUE *queue, bool pause)

πŸ’… DESCRIPTION πŸ’…

So the whole vibe of this function is: it pauses or resumes whether new events get accepted into the event queue. Wanna resume? Just pass false for pause. That's it, that's the girl πŸ’β™€οΈ

Events that are already in the queue? Completely unaffected. Untouched. Living their best life. Not your problem. πŸ’–

Now here's the tea while a queue is paused: any events that would have been entered into the queue are simply ignored. Like, not stored, not delayed, not queued up for later β€” just ✨ ignored ✨. Gone. Not invited to the party. πŸ’€

And why would you even want this? Because it's the alternative to unregistering then re-registering all your event sources from the event queue. So if all you need is to stop events from piling up in the queue for a little while, this is your girl β€” no need to do the whole unregister/re-register dance. Periodt. πŸ‘‘

ngl this is giving "do not disturb mode" but for events πŸŒ™

πŸ¦‹ SEE ALSO πŸ¦‹


⭐ SINCE ⭐

5.1.0 β€” she's been iconic since 5.1.0, no cap πŸŽ€


and that's the whole page bestie, mwah πŸ’‹ β€” this was Allegro reference manual, al_pause_event_queue(3alleg5), stay paused, stay unbothered πŸ§šπŸ’œ

πŸ“¦ where this page comes from