Penguin

SDL_!SemPost?

SDL_!SemPost?

NAME SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLES SEE ALSO


NAME

SDL_!SemPost?- Unlock a semaphore.

SYNOPSIS

#include

int SDL_!SemPost?(SDL_sem *sem);

DESCRIPTION

SDL_!SemPost? unlocks the semaphore pointed to by sem and atomically increments the semaphores value. Threads that were blocking on the semaphore may be scheduled after this call succeeds.

SDL_!SemPost? should be called after a semaphore is locked by a successful call to SDL_!SemWait?, SDL_!SemTryWait? or SDL_!SemWaitTimeout?.

RETURN VALUE

Returns 0 if successful or -1 if there was an error (leaving the semaphore unchanged).

EXAMPLES

SDL_!SemPost?(my_sem);

SEE ALSO

SDL_!CreateSemaphore?, SDL_!DestroySemaphore?, SDL_!SemWait?, SDL_!SemTryWait?, SDL_!SemWaitTimeout?, 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.