Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-06-02 01:01:04
Size: 997
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 2 as of 2010-06-02 01:11:49
Size: 1027
Editor: SheenaSmith
Comment: add RF
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
 .[[SDL_SemWaitTimeout]] ???

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

None: SDL_SemWait (last edited 2013-10-05 19:37:34 by PhilippWiesemann)

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