Tao.Sdl SDK Documentation

Sdl.SDL_SemtryWait Method 

Non-blocking variant of SDL_SemWait(), returns 0 if the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error.

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

Return Value

Non-blocking variant of SDL_SemWait(), returns 0 if the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error.

Remarks

Binds to C-function call in SDL_mutex.h:

extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem *sem)

See Also

Sdl Class | Tao.Sdl Namespace