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.
*

The old wiki lists the other Sem functions as RFs.


CategoryAPI, CategoryMutex

SDL_DestroySemaphore (last edited 2010-10-18 02:21:16 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit