Wiki Page Content

Revision 1 as of 2010-06-02 01:17:01

Clear message

DRAFT

SDL_SemWaitTimeout

Use this function to as a variant of SDL_SemWait() with a timeout in milliseconds.

Syntax

int SDL_SemWaitTimeout(SDL_sem* sem,
                       Uint32   ms)

Function Parameters

sem

a pointer to the SDL_sem structure to monitor

ms

the length of the timeout in milliseconds

Return Value

Returns 0 if the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in the allotted time, and -1 on error; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

/!\ {i} On some platforms this function is implemented by looping with a delay of 1 ms, and so should be avoided if possible.


CategoryAPI, CategoryMutex

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