C# Class Blacker.MangaScraper.Common.Utils.FifoSemaphore

Implementation of FIFO Semaphore. Based on implementation from DigitallyCreated Utilities (http://dcutilities.codeplex.com/)
Inheritance: ISemaphore
Exibir arquivo Open project: blacker-cz/MangaScraper

Protected Properties

Property Type Description
_tokens int

Public Methods

Method Description
FifoSemaphore ( int tokens ) : System.Collections.Generic

Constructor, creates a FifoSemaphore

Release ( ) : void
Release ( int count ) : void
Wait ( ) : bool
Wait ( int milliseconds ) : bool

Method Details

FifoSemaphore() public method

Constructor, creates a FifoSemaphore
public FifoSemaphore ( int tokens ) : System.Collections.Generic
tokens int The number of tokens the semaphore will start with
return System.Collections.Generic

Release() public method

public Release ( ) : void
return void

Release() public method

public Release ( int count ) : void
count int
return void

Wait() public method

public Wait ( ) : bool
return bool

Wait() public method

public Wait ( int milliseconds ) : bool
milliseconds int
return bool

Property Details

_tokens protected_oe property

The tokens count for this class
protected int _tokens
return int