al_run_detached_thread(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_run_detached_thread β€” Allegro 5 API 🌈 this page is al_run_detached_thread(3alleg5), bestie, and it's literally the detached-thread girlie of the Allegro 5 API πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

void al_run_detached_thread(void *(*proc)(void *arg), void *arg)

πŸ’– DESCRIPTION πŸ’–

okay so al_run_detached_thread runs the function you pass in its own thread, with arg passed to it as only parameter ✨

it's similar to calling al_create_thread(3alleg5), al_start_thread(3alleg5) and (after the thread has finished) al_destroy_thread(3alleg5) β€” but you don’t have the possibility of ever calling al_join_thread(3alleg5) on the thread πŸ’€

so like, no join for you, bestie β€” that's the whole detached vibe, periodt 🫢

source/version: Allegro reference manual, page al_run_detached_thread(3alleg5) 🌸 date: the original footer didn't include one, so I'm not inventing it, no cap πŸ’…

πŸ“¦ where this page comes from