AL_CREATE_THREAD_WITH_STACKSIZE(3)

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

πŸ’… 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