C# Класс Blacker.MangaScraper.Common.Utils.FifoSemaphore

Implementation of FIFO Semaphore. Based on implementation from DigitallyCreated Utilities (http://dcutilities.codeplex.com/)
Наследование: ISemaphore
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_tokens int

Открытые методы

Метод Описание
FifoSemaphore ( int tokens ) : System.Collections.Generic

Constructor, creates a FifoSemaphore

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

Описание методов

FifoSemaphore() публичный Метод

Constructor, creates a FifoSemaphore
public FifoSemaphore ( int tokens ) : System.Collections.Generic
tokens int The number of tokens the semaphore will start with
Результат System.Collections.Generic

Release() публичный Метод

public Release ( ) : void
Результат void

Release() публичный Метод

public Release ( int count ) : void
count int
Результат void

Wait() публичный Метод

public Wait ( ) : bool
Результат bool

Wait() публичный Метод

public Wait ( int milliseconds ) : bool
milliseconds int
Результат bool

Описание свойств

_tokens защищенное свойство

The tokens count for this class
protected int _tokens
Результат int