|
⇤ ← Revision 1 as of 2010-06-06 23:49:29
Size: 989
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
|
Size: 993
Comment: update content - changeset 4469
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 13: | Line 13: |
| SDL_mutex* mut) | SDL_mutex* mutex) |
| Line 18: | Line 18: |
| ||'''mut'''||^a pointer to the SDL_mutex structure that is to be unlocked^|| | ||'''mutex'''||^a pointer to the SDL_mutex structure that is to be unlocked^|| |
DRAFT |
SDL_CondWait
Use this function to wait on the condition variable, unlocking the provided mutex.
Contents
Syntax
int SDL_CondWait(SDL_cond* cond,
SDL_mutex* mutex)
Function Parameters
cond |
a pointer to the SDL_cond structure that is being applied ??? |
mutex |
a pointer to the SDL_mutex structure that is to be unlocked |
Return Value
Returns 0 when it is signaled, or -1 on error; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
The mutex must be locked before entering this function! The mutex is re-locked once the condition variable is signaled.
