|
Size: 750
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
← Revision 5 as of 2013-08-12 06:16:13 ⇥
Size: 605
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| #pragma disable-camelcase ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| |
#pragma camelcase off |
| Line 6: | Line 5: |
| Use this function to return the current count of the semaphore. | Use this function to get the current value of a semaphore. |
| Line 16: | Line 15: |
| ||'''sem'''||^a pointer to the SDL_sem structure to query^|| | ||'''sem'''||the semaphore to query|| |
| Line 19: | Line 18: |
| Returns the current count of the semaphore, or a negative error code on failure; call [[SDL_GetError]]() for more information. | Returns the current value of the semaphore. |
| Line 30: | Line 29: |
| .[[SDL_CreateSemaphore]] |
SDL_SemValue
Use this function to get the current value of a semaphore.
Contents
Syntax
Uint32 SDL_SemValue(SDL_sem* sem)
Function Parameters
sem |
the semaphore to query |
Return Value
Returns the current value of the semaphore.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
