SDL_!DestroySemaphore
NAME SYNOPSIS DESCRIPTION EXAMPLES SEE ALSO
SDL_!DestroySemaphore- Destroys a semaphore that was created by SDL_!CreateSemaphore.
#include
void SDL_!DestroySemaphore(__SDL_sem
SDL_!DestroySemaphore destroys the semaphore pointed to by sem that was created by SDL_!CreateSemaphore. It is not safe to destroy a semaphore if there are threads currently blocked waiting on it.
if (my_sem != NULL) { SDL_!DestroySemaphore(my_sem); my_sem = NULL; }
SDL_!CreateSemaphore, SDL_!SemWait, SDL_!SemTryWait, SDL_!SemWaitTimeout, SDL_!SemPost, SDL_!SemValue
One page links to SDL_DestroySemaphore(3):