Wiki Page Content

Revision 4 as of 2010-10-18 02:18:27

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 semaphore 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