Destroy a semaphore.
Defined in <SDL3/SDL_mutex.h>
void SDL_DestroySemaphore(SDL_Semaphore *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.
CategoryAPI, CategoryAPIFunction, CategoryMutex