Wiki Page Content

Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2010-06-02 01:30:19
Size: 750
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 5 as of 2013-08-12 06:16:13
Size: 605
Editor: Sam Lantinga
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#pragma disable-camelcase
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
#pragma camelcase off
Line 6: Line 5:
Use this function to return the current count of the semaphore. Use this function to get the current value of a semaphore.
Line 16: Line 15:
||'''sem'''||^a pointer to the SDL_sem structure to query^|| ||'''sem'''||the semaphore to query||
Line 19: Line 18:
Returns the current count of the semaphore, or a negative error code on failure; call [[SDL_GetError]]() for more information. Returns the current value of the semaphore.
Line 30: Line 29:
 .[[SDL_CreateSemaphore]]

SDL_SemValue

Use this function to get the current value of a semaphore.

Syntax

Uint32 SDL_SemValue(SDL_sem* sem)

Function Parameters

sem

the semaphore to query

Return Value

Returns the current value of the semaphore.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryMutex

None: SDL_SemValue (last edited 2013-08-12 06:16:13 by Sam Lantinga)

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