Tao.Sdl SDK Documentation

Sdl.SDL_CreateSemaphore Method 

Create a semaphore, initialized with value, returns NULL on failure.

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

Return Value

Create a semaphore, initialized with value, returns NULL on failure.

Remarks

Binds to C-function call in SDL_mutex.h:

extern DECLSPEC SDL_sem * SDLCALL SDL_CreateSemaphore(Uint32 initial_value)

See Also

Sdl Class | Tao.Sdl Namespace