Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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