Sage Modeling and Simulation Library

MultiRequestProcessor..::..AcquireAll Method

Acquires all of the resources referred to in the array of requests, or if it cannot, it acquires none of them. If the blocking parameter is true, it keeps trying until it is successful. Otherwise, it tries once, and returns immediately, indicating success or failure.

Namespace:  Highpoint.Sage.Resources
Assembly:  Sage4 (in Sage4.dll)


public static bool AcquireAll(
	ref IResourceRequest[] requests,
	bool blockAwaitingAcquisition


Type: array<IResourceRequest>[]()[][]%
The resource requests on which this processor is to operate.
Type: Boolean
If true, this call blocks until the resource is available.

Return Value

true if the acquisition was successful, false otherwise.