al_run_detached_thread(3)
okay so bestie, welcome to al_run_detached_thread(3) β this is the Library Functions Manual page for the Allegro 5 API, and itβs a whole little vibe. β¨
π NAME π
al_run_detached_thread β Allegro 5 API π¦
π SYNOPSIS π
#include <allegro5/allegro.h>
void al_run_detached_thread(void *(*proc)(void *arg), void *arg)
π DESCRIPTION π
Okay so hereβs the tea: al_run_detached_thread runs the function you pass in β thatβs proc β in its own thread, and it passes arg to it as the only parameter. Literally the one and only parameter, periodt. π«Ά
This is similar to calling al_create_thread(3), al_start_thread(3) and, after the thread has finished, al_destroy_thread(3) β but thereβs a big catch: you donβt have the possibility of ever calling al_join_thread(3) on the thread. Not once. Not ever. π
π from the Allegro reference manual, repping al_run_detached_thread(3) β no date in the original footer, so Iβm not making one up; thatβs the sign-off, 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