SDL_!SemPost
NAME SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLES SEE ALSO
SDL_!SemPost- Unlock a semaphore.
#include
int SDL_!SemPost(SDL_sem *sem);
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.
Returns 0 if successful or -1 if there was an error (leaving the semaphore unchanged).
SDL_!SemPost(my_sem);
SDL_!CreateSemaphore, SDL_!DestroySemaphore, SDL_!SemWait, SDL_!SemTryWait, SDL_!SemWaitTimeout, SDL_!SemValue
One page links to SDL_SemPost(3):