C# 클래스 Sarcasm.Utility.ResourceCounter

파일 보기 프로젝트 열기: davidnemeti/Sarcasm

공개 메소드들

메소드 설명
Release ( int numberOfResourcesToRelease ) : void
ResourceCounter ( int totalNumberOfResources, int initialAcquiredNumberOfResources ) : System
TryAcquire ( int numberOfResourcesToAcquire ) : bool
TryAcquireOrLess ( int numberOfResourcesToAcquireIdeally, int &numberOfResourcesAcquiredActually ) : bool

메소드 상세

Release() 공개 메소드

public Release ( int numberOfResourcesToRelease ) : void
numberOfResourcesToRelease int
리턴 void

ResourceCounter() 공개 메소드

public ResourceCounter ( int totalNumberOfResources, int initialAcquiredNumberOfResources ) : System
totalNumberOfResources int
initialAcquiredNumberOfResources int
리턴 System

TryAcquire() 공개 메소드

public TryAcquire ( int numberOfResourcesToAcquire ) : bool
numberOfResourcesToAcquire int
리턴 bool

TryAcquireOrLess() 공개 메소드

public TryAcquireOrLess ( int numberOfResourcesToAcquireIdeally, int &numberOfResourcesAcquiredActually ) : bool
numberOfResourcesToAcquireIdeally int
numberOfResourcesAcquiredActually int
리턴 bool