|
Size: 1871
Comment: update content - pointers, structs
|
Size: 1877
Comment: update content - pointers, structs
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 20: | Line 20: |
| ||'''cond'''||^the applicable SDL_cond^ ???|| ||'''mutex'''||^a pointer to the SDL_mutex to be timed out^ ???|| |
||'''cond'''||^the applicable condition variable^ ???|| ||'''mutex'''||^a pointer to the mutex to be timed out^ ???|| |
DRAFT |
SDL_CondWaitTimeout
Use this function to wait on a condition variable for a fixed delay -or- *with timeout*.
green
Contents
Syntax
int SDL_CondWaitTimeout(SDL_cond* cond,
SDL_mutex* mutex,
Uint32 ms)
Function Parameters
cond |
the applicable condition variable ??? |
mutex |
a pointer to the mutex to be timed out ??? |
ms |
the maximum number of milliseconds to wait |
Return Value
Returns 0 if the condition variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not signaled in the allotted time, or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
*
mutex is unlocked so it must be locked when the function is called and it will re- unlock afterward.
green
*
On some platforms this function is implemented by looping with a delay of 1 ms, and so should be avoided if possible.
