C# 클래스 Blacker.MangaScraper.Common.Utils.FifoSemaphore

Implementation of FIFO Semaphore. Based on implementation from DigitallyCreated Utilities (http://dcutilities.codeplex.com/)
상속: ISemaphore
파일 보기 프로젝트 열기: blacker-cz/MangaScraper

보호된 프로퍼티들

프로퍼티 타입 설명
_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