include/SDL_mutex.h
changeset 1263 3bdcef7e1c90
parent 769 b8d311d90021
child 1312 c9b51268668f
equal deleted inserted replaced
1262:09164d2b8373 1263:3bdcef7e1c90
   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