SDL_CondWaitTimeout(3)
SDL_CondWaitTimeout β wait on a condition variable, with timeout π
okay bestie, welcome to the SDL API Reference, manual page 3, and today we're getting into SDL_CondWaitTimeout π«Ά
β¨ NAME β¨
SDL_CondWaitTimeout β wait on a condition variable, with timeout π
β¨ SYNOPSIS β¨
#include "SDL.h" #include "SDL_thread.h"
int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms);
π DESCRIPTION π
so basically you're waiting on the condition variable cond for at most ms milliseconds β³. like, you give it a time limit and it will not wait longer than that, periodt.
mut is unlocked β so it must be locked when the function is called π. not optional, bestie.
here's what it hands back to you:
SDL_MUTEX_TIMEDOUTβ if the condition is not signalled in the allotted time π0β if it was signalled β-1β on an error π
π¦ SEE ALSO π¦
SDL_CondWait
and that's the whole vibe π this page came from SDL, dated Tue 11 Sep 2001, 23:00. mwah, bye bestie πβ¨
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms