SDL_CondBroadcast(3)

okay bestie, welcome to SDL_CondBroadcast(3) from the SDL API Reference πŸ’– this is the little function that wakes up everybody waiting on a condition variable. no cap, it's giving group-chat ping energy πŸ‘‘


✨ NAME ✨

SDL_CondBroadcast β€” restart all threads waiting on a condition variable πŸ‘‘


πŸ“š SYNOPSIS πŸ“š

#include "SDL.h" #include "SDL_thread.h"

int SDL_CondBroadcast(SDL_cond *cond);

πŸ’– DESCRIPTION πŸ’–

So, SDL_CondBroadcast restarts all the threads that are waiting on the condition variable, cond. Not one, not a few β€” all of them, bestie 🫢

It returns 0 on success, or -1 on an error. that's the whole vibe. short, iconic, does exactly what it says πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

  • SDL_CondSignal
  • SDL_CondWait

this page came from SDL, dated Tue 11 Sep 2001, 23:00, and it's literally the SDL_CondBroadcast(3) manual page. bye bestie, go wake up those threads πŸŒΈβœ¨πŸ’œ

πŸ“¦ where this page comes from