SDL_DestroySemaphore - Man Page
Destroy a semaphore.
Header File
Defined in SDL3/SDL_mutex.h
Synopsis
#include "SDL3/SDL.h" void SDL_DestroySemaphore(SDL_Semaphore *sem);
Description
It is not safe to destroy a semaphore if there are threads currently waiting on it.
Function Parameters
- sem
the semaphore to destroy.
Availability
This function is available since SDL 3.2.0.
See Also
·(3), SDL_CreateSemaphore(3)
Referenced By
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS