|
⇤ ← Revision 1 as of 2010-06-02 00:30:50
Size: 943
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 1057
Comment: add content
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| <<Color2(green,-OR- does it return a positive value when the resource is available and 0 when it is in use?)>> |
DRAFT |
SDL_CreateSemaphore
Use this function to create a semaphore, initialized with value, returns NULL on failure.
green
Contents
Syntax
SDL_sem* SDL_CreateSemaphore(Uint32 initial_value)
Function Parameters
initial_value |
the starting value for the semaphore |
Return Value
Returns the current semaphore value for the resource on success, or NULL on failure; call SDL_GetError() for more information.
green
Code Examples
You can add your code example here
Remarks
You can add useful comments here
