Tao.Sdl SDK Documentation

Sdl.SDL_SemWaitTimeout Method 

Variant of SDL_SemWait() with a timeout in milliseconds, returns 0 if the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in the allotted time, and -1 on error. On some platforms this function is implemented by looping with a delay of 1 ms, and so should be avoided if possible.

[Visual Basic]
Public Shared Function SDL_SemWaitTimeout( _
   ByVal sem As IntPtr, _
   ByVal ms As Integer _
) As Integer
[C#]
public static int SDL_SemWaitTimeout(
   IntPtr sem,
   int ms
);

Return Value

Variant of SDL_SemWait() with a timeout in milliseconds, returns 0 if the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in the allotted time, and -1 on error. On some platforms this function is implemented by looping with a delay of 1 ms, and so should be avoided if possible.

Remarks

Binds to C-function call in SDL_mutex.h:

extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem *sem, Uint32 ms)

See Also

Sdl Class | Tao.Sdl Namespace