equal
deleted
inserted
replaced
143 */ |
143 */ |
144 extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond *cond); |
144 extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond *cond); |
145 |
145 |
146 /* Wait on the condition variable, unlocking the provided mutex. |
146 /* Wait on the condition variable, unlocking the provided mutex. |
147 The mutex must be locked before entering this function! |
147 The mutex must be locked before entering this function! |
|
148 The mutex is re-locked once the condition variable is signaled. |
148 Returns 0 when it is signaled, or -1 on error. |
149 Returns 0 when it is signaled, or -1 on error. |
149 */ |
150 */ |
150 extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond *cond, SDL_mutex *mut); |
151 extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond *cond, SDL_mutex *mut); |
151 |
152 |
152 /* Waits for at most 'ms' milliseconds, and returns 0 if the condition |
153 /* Waits for at most 'ms' milliseconds, and returns 0 if the condition |