Destroy a semaphore.
Defined in <SDL3/SDL_mutex.h>
void SDL_DestroySemaphore(SDL_Semaphore *sem);
SDL_Semaphore * | sem | the semaphore to destroy. |
It is not safe to destroy a semaphore if there are threads currently waiting on it.
This function is available since SDL 3.1.3.