Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-10-12 06:02:08
Size: 804
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 4 as of 2010-10-18 02:21:16
Size: 801
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''sem'''||^the SDL_sem to be destroyed^|| ||'''sem'''||^the semaphore to destroy^||

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

green


CategoryAPI, CategoryMutex

None: SDL_DestroySemaphore (last edited 2013-08-12 05:44:22 by Sam Lantinga)

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