SDL_DestroySemaphore(3)
π SDL_DestroySemaphore(3) β SDL3 FUNCTIONS π
okay bestie, welcome to the SDL_DestroySemaphore(3) page from SDL3 FUNCTIONS. It's giving semaphore cleanup, and we're keeping every detail exactly where it belongs. No cap. π¦
β¨ NAME β¨
SDL_DestroySemaphore β destroy a semaphore. That's the whole main character job. π
π SYNOPSIS π
#include <SDL3/SDL_mutex.h>
void SDL_DestroySemaphore(SDL_Semaphore *sem);
π DESCRIPTION π
okay so listen: it is not safe to destroy a semaphore if there are threads currently waiting on it. Like, do not do that. That's the warning, bestie. π
π«Ά FUNCTION PARAMETERS π«Ά
semβ the semaphore to destroy. That's the one you're sending off into the void. β¨
π₯ THREAD SAFETY π₯
good news: it is safe to call this function from any thread. Periodt. π
πΈ AVAILABILITY πΈ
this function is available since SDL 3.2.0. If you're on that or newer, you're good. π«Ά
π SEE ALSO π
SDL_CreateSemaphore(3)β the create side of the story. Go check it out. π
Catch ya later, bestie β source/version check: Simple Directmedia Layer, SDL 3.4.18. No date on the footer, but the vibe is immaculate. πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms