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