Tao.Sdl SDK Documentation

Sdl.SDL_CondWaitTimeout Method 

Waits for at most 'ms' milliseconds, and returns 0 if the condition variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not signaled 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_CondWaitTimeout( _
   ByVal cond As IntPtr, _
   ByVal mutex As IntPtr, _
   ByVal ms As Integer _
) As Integer
[C#]
public static int SDL_CondWaitTimeout(
   IntPtr cond,
   IntPtr mutex,
   int ms
);

Return Value

returns 0 if the condition variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not signaled in the allotted time, and -1 on error

Remarks

Binds to C-function call in SDL_mutex.h:

extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms)

See Also

Sdl Class | Tao.Sdl Namespace