Wiki Page Content

Revision 1 as of 2010-06-02 01:08:42

Clear message

DRAFT

SDL_SemTryWait

Use this function to as a non-blocking variant of alternative to SDL_SemWait().

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


CategoryAPI, CategoryMutex

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit