Penguin
Blame: SDL_SemPost(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_SemPost(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!SemPost
2 !!!SDL_!SemPost
1 perry 3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 EXAMPLES
8 SEE ALSO
9 ----
10 !!NAME
11
12
2 perry 13 SDL_!SemPost- Unlock a semaphore.
1 perry 14 !!SYNOPSIS
15
16
17 __#include
18 __
19
20
2 perry 21 __int SDL_!SemPost__(__SDL_sem *sem__);
1 perry 22 !!DESCRIPTION
23
24
2 perry 25 __SDL_!SemPost__ unlocks the semaphore pointed to by
1 perry 26 __sem__ and atomically increments the semaphores value.
27 Threads that were blocking on the semaphore may be scheduled
28 after this call succeeds.
29
30
2 perry 31 __SDL_!SemPost__ should be called after a semaphore is
32 locked by a successful call to ''SDL_!SemWait'',
33 ''SDL_!SemTryWait'' or
34 ''SDL_!SemWaitTimeout''.
1 perry 35 !!RETURN VALUE
36
37
38 Returns __0__ if successful or __-1__ if there was an
39 error (leaving the semaphore unchanged).
40 !!EXAMPLES
41
42
2 perry 43 SDL_!SemPost(my_sem);
1 perry 44 !!SEE ALSO
45
46
2 perry 47 __SDL_!CreateSemaphore__, __SDL_!DestroySemaphore__,
48 __SDL_!SemWait__, __SDL_!SemTryWait__,
49 __SDL_!SemWaitTimeout__, __SDL_!SemValue__
1 perry 50 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.