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

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

Protected Properties

Свойство Type Description
_tokens int

Méthodes publiques

Méthode 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 méthode

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

Release() public méthode

public Release ( ) : void
Résultat void

Release() public méthode

public Release ( int count ) : void
count int
Résultat void

Wait() public méthode

public Wait ( ) : bool
Résultat bool

Wait() public méthode

public Wait ( int milliseconds ) : bool
milliseconds int
Résultat bool

Property Details

_tokens protected_oe property

The tokens count for this class
protected int _tokens
Résultat int