al_wait_for_event_until(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

okay so bestie, this is al_wait_for_event_until(3) from the Library Functions Manual β€” the Allegro 5 API page for waiting on an event queue until a timeout says stop. it's giving β€œwaiting but make it timed” energy ✨

πŸ’– NAME πŸ’–

al_wait_for_event_until β€” Allegro 5 API. that's the whole name line, no cap 🫢

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_wait_for_event_until(ALLEGRO_EVENT_QUEUE *queue,
   ALLEGRO_EVENT *ret_event, ALLEGRO_TIMEOUT *timeout)

🌸 DESCRIPTION 🌸

okay so here's the vibe: this function waits until the event queue you passed in is non-empty. if ret_event is not NULL, the first event in the queue gets copied into ret_event and removed from the queue. periodt. πŸ’…

if ret_event is NULL, the first event is left at the head of the queue β€” it does not get removed, bestie. it stays right there at the front. 🫢

timeout determines how long to wait. if the call times out, false is returned. otherwise, if an event ocurred, true is returned. that's the whole return-value situation, fr fr. 😭

for compatibility with all platforms, timeout must be 2,147,483.647 seconds or less. that's the rule, so don't try to be cute with a bigger number πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

go check out these iconique related pages:


source/version: Allegro reference manual ✨ page: al_wait_for_event_until(3) πŸŽ€ date: the footer didn't give me one, so we're keeping it mysterious β€” love that for us πŸ’œ

πŸ“¦ 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