al_run_detached_thread(3)

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

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