Penguin
Note: You are viewing an old revision of this page. View the current version.

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.

lib/main.php:944: Notice: PageInfo: Cannot find action page

lib/main.php:839: Notice: PageInfo: Unknown action