|
Size: 868
Comment: update content (old wiki)
|
Size: 833
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.
Contents
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
