1SDL_SemValue(3)                SDL API Reference               SDL_SemValue(3)
2
3
4

NAME

6       SDL_SemValue - Return the current value of a semaphore.
7

SYNOPSIS

9       #include "SDL.h" #include "SDL/SDL_thread.h"
10
11       Uint32 SDL_SemValue(SDL_sem *sem);
12

DESCRIPTION

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

RETURN VALUE

18       Returns current value of the semaphore.
19

EXAMPLES

21         sem_value = SDL_SemValue(my_sem);
22

SEE ALSO

24       SDL_CreateSemaphore, SDL_DestroySemaphore, SDL_SemWait, SDL_SemTryWait,
25       SDL_SemWaitTimeout, SDL_SemPost
26
27
28
29SDL                         Tue 11 Sep 2001, 23:00             SDL_SemValue(3)
Impressum