DRAFT |
SDL_DestroySemaphore
Use this function to destroy a semaphore.
Syntax
void SDL_DestroySemaphore(SDL_sem* sem)
Function Parameters
sem |
the semaphore to destroy |
Code Examples
if (my_sem != NULL) {
SDL_DestroySemaphore(my_sem);
my_sem = NULL;
}
Remarks
*
It is not safe to destroy a semaphore if there are threads currently blocked waiting on it.
*
Related Functions
The old wiki lists the other Sem functions as RFs.