|
Size: 750
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 835
Comment: update content - pointers, structs
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to return the current count of the semaphore. | Use this function to return the current count of ,,the,, ^a^ semaphore. |
| Line 16: | Line 16: |
| ||'''sem'''||^a pointer to the SDL_sem structure to query^|| | ||'''sem'''||^the semaphore to query^|| |
| Line 19: | Line 19: |
| Returns the current count of the semaphore, or a negative error code on failure; call [[SDL_GetError]]() for more information. | Returns the current count of the semaphore or a negative error code on failure; call [[SDL_GetError]]() for more information. |
| Line 22: | Line 22: |
| * | |
| Line 23: | Line 24: |
| You can add your code example here | sem_value = SDL_SemValue(my_sem); |
| Line 25: | Line 26: |
| * | |
| Line 30: | Line 32: |
| .[[SDL_SemPost]] * .[[SDL_SemTryWait]] * .[[SDL_SemWait]] * .[[SDL_SemWaitTimeout]] * |
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 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
