table of contents
other versions
SDL_SemPost(3) | SDL3 FUNCTIONS | SDL_SemPost(3) |
NAME¶
SDL_SemPost - Atomically increment a semaphore's value and wake waiting threads.
SYNOPSIS¶
#include "SDL3/SDL.h"
int SDL_SemPost(SDL_sem *sem);
FUNCTION PARAMETERS¶
- sem
- the semaphore to increment
RETURN VALUE¶
Returns 0 on success or a negative error code on failure; call
SDL_GetError () for more information.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_CreateSemaphore(3), SDL_DestroySemaphore(3), SDL_SemTryWait(3), SDL_SemValue(3), SDL_SemWait(3), SDL_SemWaitTimeout(3)
SDL 3.0.0 | SDL |