Differences between version 2 and predecessor to the previous major change of SDL_CreateSemaphore(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:41 pm | by perry | Revert |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:41 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_CreateSemaphore
-!!!SDL_CreateSemaphore
+SDL_!
CreateSemaphore
+!!!SDL_!
CreateSemaphore
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
@@ -9,29 +9,29 @@
----
!!NAME
-SDL_CreateSemaphore- Creates a new semaphore and assigns an initial value to it.
+SDL_!
CreateSemaphore- Creates a new semaphore and assigns an initial value to it.
!!SYNOPSIS
__#include
__
-__SDL_sem *SDL_CreateSemaphore__(__Uint32
+__SDL_sem *SDL_!
CreateSemaphore__(__Uint32
initial_value__);
!!DESCRIPTION
-__SDL_CreateSemaphore()__ creates a new semaphore and
+__SDL_!
CreateSemaphore()__ creates a new semaphore and
initializes it with the value __initial_value__. Each
-locking operation on the semaphore by ''SDL_SemWait'',
-''SDL_SemTryWait'' or ''SDL_SemWaitTimeout'' will
+locking operation on the semaphore by ''SDL_!
SemWait'',
+''SDL_!
SemTryWait'' or ''SDL_!
SemWaitTimeout'' will
atomically decrement the semaphore value. The locking
operation will be blocked if the semaphore value is not
positive (greater than zero). Each unlock operation by
-''SDL_SemPost'' will atomically increment the semaphore
+''SDL_!
SemPost'' will atomically increment the semaphore
value.
!!RETURN VALUE
@@ -40,15 +40,15 @@
!!EXAMPLES
SDL_sem *my_sem;
-my_sem = SDL_CreateSemaphore(INITIAL_SEM_VALUE);
+my_sem = SDL_!
CreateSemaphore(INITIAL_SEM_VALUE);
if (my_sem == NULL) {
return CREATE_SEM_FAILED;
}
!!SEE ALSO
-__SDL_DestroySemaphore__, __SDL_SemWait__,
-__SDL_SemTryWait__, __SDL_SemWaitTimeout__,
-__SDL_SemPost__, __SDL_SemValue__
+__SDL_!
DestroySemaphore__, __SDL_!
SemWait__,
+__SDL_!
SemTryWait__, __SDL_!
SemWaitTimeout__,
+__SDL_!
SemPost__, __SDL_!
SemValue__
----