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

NAME

6       SDL_DestroySemaphore  -  Destroys  a  semaphore  that  was  created  by
7       SDL_CreateSemaphore.
8

SYNOPSIS

10       #include "SDL.h" #include "SDL_thread.h"
11
12       void SDL_DestroySemaphore(SDL_sem *sem);
13

DESCRIPTION

15       SDL_DestroySemaphore destroys the semaphore pointed to by sem that  was
16       created  by  SDL_CreateSemaphore. It is not safe to destroy a semaphore
17       if there are threads currently blocked waiting on it.
18

EXAMPLES

20       if (my_sem != NULL) {
21               SDL_DestroySemaphore(my_sem);
22               my_sem = NULL;
23       }
24

SEE ALSO

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