Метод | Описание | |
---|---|---|
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 |