AL_GET_THREAD_SHOULD_STOP(3)

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

okay so this is al_get_thr...should_stop(3) from the Library Functions Manual β€” the Allegro 5 API corner of the universe, and we’re about to make it make sense πŸ’…βœ¨

🌸 NAME 🌸

al_get_thread_should_stop β€” Allegro 5 API, and it’s literally giving β€œpolite thread check-in” energy πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

bool al_get_thread_should_stop(ALLEGRO_THREAD *thread)

✨ DESCRIPTION ✨

bestie, this one checks if another thread is waiting for thread to stop. that’s the whole vibe check 🫢

Threads that run in a loop should check this periodically and act on it when convenient β€” like, don’t ignore it forever, but also no need to panic-spiral every single nanosecond 😌

It returns true if another thread has called al_join_thread(3) or al_set_thread_should_stop(3) on this thread. iconic behavior, honestly πŸ”₯

⚠️ note: we don’t support forceful killing of threads. like, at all. no cap πŸ’€

πŸŽ€ SEE ALSO πŸŽ€

go read those next, iykyk 🌈


kisses and clean thread shutdowns πŸ’– β€” from the Allegro reference manual, page al_get_thr...should_stop(3). (no date printed on this page, bestie 🫢)

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