Click or drag to resize

IJobSchedulerContext.YieldResource Method (String, Int64, Boolean)

Yields the resource with the specified amount.

Namespace:  AGI.Parallel.Infrastructure
Assembly:  AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 2.10.0.1777 (2.10.0.1777)
Syntax
long YieldResource(
	string resource,
	long amount,
	bool restrictToChildren
)

Parameters

resource
Type: System.String
The resource. You can find common values for resources using ConsumableResources.
amount
Type: System.Int64
The amount.
restrictToChildren
Type: System.Boolean
if set to true will yield resources only to child jobs.

Return Value

Type: Int64
The resource amount currently consumed by the task.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf resource is null.
ArgumentOutOfRangeExceptionIf amount if less than 0.
JobSchedulerExceptionIf error occurred during operation. For instance, yield amount was more than the amount current allocated.
See Also

STK Parallel Computing Server 2.10 API for .NET