DRAFT |
SDL_SemTryWait
Use this function to as a non-blocking variant of alternative to SDL_SemWait().
Contents
Syntax
int SDL_SemTryWait(SDL_sem* sem)
Function Parameters
sem |
a pointer to the SDL_sem structure to be monitored |
Return Value
Returns 0 if the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
You can add useful comments here
green
