AL_CREATE_THREAD_WITH_STACKSIZE(3)
π NAME π
Okay so this page comes from the Library Functions Manual, and the main character is al_create_thread_with_stacksize β Allegro 5 API, aka the function that spawns a thread with a stack size you pick. Periodt.
β¨ 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 π
Bestie, this one spawns a new thread with the stacksize you give it β and yes, that's in bytes. The new thread begins executing proc, and it gets passed its own thread handle plus the value arg.
On success you get a pointer to the thread back. If there was an error? It returns NULL. No cap. π
π SINCE π
5.2.5 β she's been around.
[Unstable API]: New API, may want a better way to specify thread options.
π¦ SEE ALSO π¦
Signing off from the Allegro reference manual, page al_create_...h_stacksize(3) β and thereβs no date printed on this one, so Iβm not making one up, 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