AL_GET_THREAD_SHOULD_STOP(3)
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