|
Size: 1773
Comment: update content - pointers, structs
|
Size: 1777
Comment: minor change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 20: | Line 20: |
| ||'''mutex'''||^the mutex that is to be unlocked^|| | ||'''mutex'''||^the SDL_mutex that is to be unlocked^|| |
DRAFT |
SDL_CondWait
Use this function to wait on the condition variable, unlocking the provided mutex. green
green
Contents
Syntax
int SDL_CondWait(SDL_cond* cond,
SDL_mutex* mutex)
Function Parameters
cond |
the applicable SDL_cond ??? |
mutex |
the SDL_mutex that is to be unlocked |
Return Value
Returns 0 when it is signaled or a negative error code on failure; 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 *by another thread calling SDL_CondSignal() or SDL_CondBroadcast() on the condition variable cond.*
green
The mutex must be locked before entering this function! green
This function unlocks the specified mutex and waits on another thread to call SDL_CondSignal() or SDL_CondBroadcast() on the condition variable cond. The mutex is re-locked once the condition variable is signaled.
