Destroy a semaphore.
void SDL_DestroySemaphore(SDL_sem *sem);
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.0.0.
<<Include(SDL_CreateSemaphore, , , from="## Begin Semaphore Example", to="## End Semaphore Example")>>