al_create_thr...with_stacksize(3alleg5)
π al_create_thread_with_stacksize β Allegro 5 API π
ok so bestie, we're in the Allegro reference manual and today's main character is al_create_thread_with_stacksize from the Allegro 5 API. she's a thread-spawner with opinions about stack size and honestly? iconic. π§΅β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
ALLEGRO_THREAD *al_create_thread_with_stacksize(
void *(*proc)(ALLEGRO_THREAD *thread, void *arg), void *arg, size_t stacksize)
π¦ DESCRIPTION π¦
okay so picture this: you spawn a brand new thread, and you get to tell it exactly how big its stack is β that's the stacksize, and it's measured in bytes btw, not vibes. that fresh little thread starts off running proc, and it gets handed two things: its very own thread handle, plus the value arg. like a lil starter pack π
if everything goes right, you get back a pointer to the thread. slay. π«Ά
if something goes wrong? you get NULL. that's it. that's the whole error report. no extra lore. π
β SINCE β
5.2.5 β she's not old, she's vintage. π
[Unstable API]: this is a new API, and the docs are literally saying they may want a better way to specify thread options. so like... it works, but don't get too attached to the interface, bestie. π
π SEE ALSO π
and that's the whole page fr fr π
β brought to you by the Allegro reference manual, filed under al_create_thr...with_stacksize(3alleg5). go forth and spawn responsibly, bestie π¦π
π¦ 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