SDL_GetThreadState(3)
π SDL_GetThreadState π
okay so bestie, welcome to the tea on SDL_GetThreadState(3) β it lives in the SDL3 FUNCTIONS fam and it's literally just here to tell you what a thread is up to rn. no cap.
β¨ NAME β¨
SDL_GetThreadState β Get the current state of a thread. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_thread.h>
SDL_ThreadState SDL_GetThreadState(SDL_Thread *thread);
π FUNCTION PARAMETERS π
threadβ the thread you wanna query, bestie. the one we're doing a vibe check on. π¦
π RETURN VALUE π
Returns the current state of a thread, or SDL_THREAD_UNKNOWN if the thread isn't valid. π«Ά
so like, if you hand it a thread that's giving nothing (invalid), you get SDL_THREAD_UNKNOWN back. that's the heads-up. π
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. periodt. π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older... it's giving not found, bestie. π
π SEE ALSO π
SDL_ThreadState(3type)β go check the type itself, iykyk. π
mwah π that's the whole page, you ate that. this little masterpiece comes to you from Simple Directmedia Layer, version SDL 3.4.18, and yeah β SDL_GetThreadState(3) is the moment. slay, bye. π§β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms