Wiki Page Content

Revision 3 as of 2010-10-12 06:04:41

Clear message

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

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