SDL_BroadcastCondition(3)

πŸ’– NAME πŸ’–

okay bestie, meet SDL_BroadcastCondition from the SDL3 FUNCTIONS manual. She's the one who restarts all threads that are waiting on the condition variable. All of them. Not a subset, not a maybe β€” all. It's giving "everybody up, we're done waiting" energy. Periodt. πŸ‘‘βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_mutex.h>

void SDL_BroadcastCondition(SDL_Condition *cond);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • cond β€” the condition variable to signal. That's the whole parameter list, bestie. She's lowkey simple like that. πŸ’…

πŸ”₯ THREAD SAFETY πŸ”₯

It is safe to call this function from any thread β€” no cap, any thread is invited to the party. 🫢

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. If you're kicking it on something older, it's giving not available yet, bestie. 😭

πŸ‘€ SEE ALSO πŸ‘€

Those are the besties in the same friend group β€” go read them too. πŸ’–


mwah πŸ’‹ this page was served by Simple Directmedia Layer, version SDL 3.4.18, and it's all about SDL_BroadcastCondition(3). stay iconic, okay? bye bestie! βœ¨πŸŽ€πŸ’…

πŸ“¦ where this page comes from