|
Size: 839
Comment: update content (old wiki)
|
Size: 804
Comment: update content - pointers, structs
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| ||'''sem'''||^a pointer to the SDL_sem structure / semaphore to be destroyed^|| | ||'''sem'''||^the SDL_sem to be destroyed^|| |
DRAFT |
SDL_DestroySemaphore
Use this function to destroy a semaphore.
Syntax
void SDL_DestroySemaphore(SDL_sem* sem)
Function Parameters
sem |
the SDL_sem to be destroyed |
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
green
