Sage Modeling and Simulation Library

MultiRequestProcessor..::..ReserveAll Method

Reserves 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 ReserveAll(
	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 reservation was successful, false otherwise.