Penguin

SDL_!DestroySemaphore?

SDL_!DestroySemaphore?

NAME SYNOPSIS DESCRIPTION EXAMPLES SEE ALSO


NAME

SDL_!DestroySemaphore?- Destroys a semaphore that was created by SDL_!CreateSemaphore?.

SYNOPSIS

#include

void SDL_!DestroySemaphore?(__SDL_sem

  • sem__);

DESCRIPTION

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.

EXAMPLES

if (my_sem != NULL) { SDL_!DestroySemaphore?(my_sem); my_sem = NULL; }

SEE ALSO

SDL_!CreateSemaphore?, SDL_!SemWait?, SDL_!SemTryWait?, SDL_!SemWaitTimeout?, SDL_!SemPost?, SDL_!SemValue?


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.