al_join_thread(3alleg5)
β¨ al_join_thread(3alleg5) β¨
okay bestie, welcome to the Allegro 5 API reference manual π this one's a lil function called al_join_thread, and ngl it's lowkey the "bestie come back, I need you" of the threading world π«Ά
πΈ NAME πΈ
al_join_thread β Allegro 5 API
π SYNOPSIS π
#include <allegro5/allegro.h>
void al_join_thread(ALLEGRO_THREAD *thread, void **ret_value)
π¦ DESCRIPTION π¦
okay so here's the tea β β this function waits for the thread to finish executing. Like, it's literally standing outside the bathroom door being like "you done yet?? π" until that thread is fully done-done.
and the way that it does this is by implicitly calling al_set_thread_should_stop(3alleg5) first π«’ so it's not just waiting passively, it's politely (but firmly) telling the thread "hey bestie, wrap it up π
" before it starts waiting. periodt.
now, if ret_value is non-NULL, the value returned by the thread function will be stored at the location pointed to by ret_value π like the thread's lil final gift to you, hand-delivered to wherever you told it to put it. if ret_value is NULL, then no cap, you just don't get the return value β that's the vibe.
π SEE ALSO π
and that's the whole page, bestie, no crumbs left π this was served fresh from the Allegro reference manual β Allegro 5 edition, al_join_thread(3alleg5) era π go forth and join your threads, icon β¨π§
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms