Method | Description | |
---|---|---|
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 | |
return | void |
public ResourceCounter ( int totalNumberOfResources, int initialAcquiredNumberOfResources ) : System | ||
totalNumberOfResources | int | |
initialAcquiredNumberOfResources | int | |
return | System |
public TryAcquire ( int numberOfResourcesToAcquire ) : bool | ||
numberOfResourcesToAcquire | int | |
return | bool |
public TryAcquireOrLess ( int numberOfResourcesToAcquireIdeally, int &numberOfResourcesAcquiredActually ) : bool | ||
numberOfResourcesToAcquireIdeally | int | |
numberOfResourcesAcquiredActually | int | |
return | bool |