Call SDL_CondSignal when no one is waiting

related: SDL_CondSignal usage

if no one has called SDL_WaitCond, can I still call SDL_CondSignal ?

this is SDL2.

documentation is not explicit and I’m terrorized

It will do nothing. I haven’t tested but that’s the only thing that makes sense and how condition variables normally work. I would be very surprised if SDL_cond worked differently.

1 Like

thanks for the quick response, this behavior is very useful, I will trust in it