C# Class Indiefreaks.Xna.Threading.Semaphore

A semaphore class.
Show file Open project: Indiefreaks/igf

Public Methods

Method Description
Release ( ) : void

Adds one resource.

Semaphore ( int maximumCount ) : System.Threading

Creates a new instance of the Semaphore class.

WaitOne ( ) : void

Blocks the calling thread until resources are made available, then consumes one resource.

Method Details

Release() public method

Adds one resource.
public Release ( ) : void
return void

Semaphore() public method

Creates a new instance of the Semaphore class.
public Semaphore ( int maximumCount ) : System.Threading
maximumCount int
return System.Threading

WaitOne() public method

Blocks the calling thread until resources are made available, then consumes one resource.
public WaitOne ( ) : void
return void