Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-06-02 00:30:50
Size: 943
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 2 as of 2010-06-02 00:46:10
Size: 1057
Editor: SheenaSmith
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

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


CategoryAPI, CategoryMutex

None: SDL_CreateSemaphore (last edited 2013-08-12 05:40:21 by Sam Lantinga)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit