Wiki Page Content

Revision 2 as of 2010-06-02 01:11:49

Clear message

DRAFT

SDL_SemWait

Use this function to suspend the calling thread until the semaphore pointed to by sem has a positive count, then atomically (?? automatically ??) decrease the semaphore count.

Syntax

int SDL_SemWait(SDL_sem* sem)

Function Parameters

sem

a pointer to the SDL_sem structure to be monitored

Return Value

Returns the count less the portion allocated when the resource becomes available and re-allocated on success, 0 on busy/unavailable, or a negative error code on failure; call SDL_GetError() for more information. ???

Code Examples

You can add your code example here

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