SDL_SignalSemaphore(3)

🌸 NAME 🌸

okay so welcome to the SDL3 FUNCTIONS manual, bestie, and today’s main character is SDL_SignalSemaphore(3) πŸ’…

SDL_SignalSemaphore β€” atomically increment a semaphore's value and wake waiting threads. no cap, that’s the whole gig.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_mutex.h>

void SDL_SignalSemaphore(SDL_Semaphore *sem);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • sem β€” the semaphore to increment. that’s it, that’s the parameter, she’s simple and iconic 🫢

✨ THREAD SAFETY ✨

It is safe to call this function from any thread. fr fr, any thread, no stress, go off πŸ‘‘


πŸ’… AVAILABILITY πŸ’…

This function is available since SDL 3.2.0. not me showing up in 3.2.0 and never leaving 😭


🫢 SEE ALSO 🫢

go read those next, iykyk 🌈


Simple Directmedia Layer β€’ SDL 3.4.18 β€’ SDL_SignalSemaphore(3) β€” that’s the footer energy, bestie, and we ate πŸ’–βœ¨ periodt.

πŸ“¦ where this page comes from