|
⇤ ← Revision 1 as of 2010-06-02 01:01:04
Size: 997
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 1027
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.
Contents
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
Related Functions
SDL_SemTryWait ???
