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 🌈


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