Differences between version 2 and predecessor to the previous major change of SDL_SemWait(3).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:48 pm | by perry | Revert |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:48 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_SemWait
-!!!SDL_SemWait
+SDL_!
SemWait
+!!!SDL_!
SemWait
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
@@ -9,46 +9,46 @@
----
!!NAME
-SDL_SemWait- Lock a semaphore and suspend the thread if the semaphore value is zero.
+SDL_!
SemWait- Lock a semaphore and suspend the thread if the semaphore value is zero.
!!SYNOPSIS
__#include
__
-__int SDL_SemWait__(__SDL_sem *sem__);
+__int SDL_!
SemWait__(__SDL_sem *sem__);
!!DESCRIPTION
-__SDL_SemWait()__ suspends the calling thread until
+__SDL_!
SemWait()__ suspends the calling thread until
either the semaphore pointed to by __sem__ has a positive
value, the call is interrupted by a signal or error. If the
call is successful it will atomically decrement the
semaphore value.
-After __SDL_SemWait()__ is successful, the semaphore can
+After __SDL_!
SemWait()__ is successful, the semaphore can
be released and its count atomically incremented by a
-successful call to ''SDL_SemPost''.
+successful call to ''SDL_!
SemPost''.
!!RETURN VALUE
Returns __0__ if successful or __-1__ if there was an
error (leaving the semaphore unchanged).
!!EXAMPLES
-if (SDL_SemWait(my_sem) == -1) {
+if (SDL_!
SemWait(my_sem) == -1) {
return WAIT_FAILED;
}
...
-SDL_SemPost(my_sem);
+SDL_!
SemPost(my_sem);
!!SEE ALSO
-__SDL_CreateSemaphore__, __SDL_DestroySemaphore__,
-__SDL_SemTryWait__, __SDL_SemWaitTimeout__,
-__SDL_SemPost__, __SDL_SemValue__
+__SDL_!
CreateSemaphore__, __SDL_!
DestroySemaphore__,
+__SDL_!
SemTryWait__, __SDL_!
SemWaitTimeout__,
+__SDL_!
SemPost__, __SDL_!
SemValue__
----