Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-09-09 20:11:44
Size: 868
Editor: SheenaSmith
Comment: update content (old wiki)
Revision 3 as of 2010-10-12 06:04:41
Size: 833
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''sem'''||^a pointer to the SDL_sem structure / semaphore to query^|| ||'''sem'''||^the SDL_sem to query^||

DRAFT

SDL_SemValue

Use this function to return the current count of the a semaphore.

Syntax

Uint32 SDL_SemValue(SDL_sem* sem)

Function Parameters

sem

the SDL_sem to query

Return Value

Returns the current count of the semaphore or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

*

sem_value = SDL_SemValue(my_sem);

*

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