Wiki Page Content

Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2010-06-02 01:30:19
Size: 750
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 4 as of 2010-10-18 02:18:27
Size: 835
Editor: SheenaSmith
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.

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

None: SDL_SemValue (last edited 2013-08-12 06:16:13 by Sam Lantinga)

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