logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SemValue - Return the current value of a semaphore.

Description

SDL_SemValue() returns the current semaphore value from the semaphore pointed to by sem.

Examples

         sem_value = SDL_SemValue(my_sem);

Name

       SDL_SemValue - Return the current value of a semaphore.

Return Value

       Returns current value of the semaphore.

See Also

SDL_CreateSemaphore, SDL_DestroySemaphore, SDL_SemWait, SDL_SemTryWait, SDL_SemWaitTimeout, SDL_SemPost

SDL                                          Tue 11 Sep 2001, 23:00                              SDL_SemValue(3)

Synopsis

#include"SDL.h"#include"SDL/SDL_thread.h"Uint32SDL_SemValue(SDL_sem*sem);

See Also