Click or drag to resize

ThreadedCalculationBodyCallback2TParameter1, TParameter2 Delegate

A delegate representing the body of a multithreaded 'for' loop. The execution of the callback will see a ThreadingPolicy with only one thread unless it is explicitly set inside the callback.

Namespace:  AGI.Foundation.Infrastructure.Threading
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public delegate void BodyCallback2<TParameter1, TParameter2>(
	TParameter1 parameter1,
	TParameter2 parameter2,
	int i
)

Parameters

parameter1
Type: TParameter1
The first parameter that is passed to the body of the loop. If this instance implements IThreadAware and IsThreadSafe returns , a copy of the parameter is made for each thread using CopyForAnotherThread.
parameter2
Type: TParameter2
The second parameter that is passed to the body of the loop. If this instance implements IThreadAware and IsThreadSafe returns , a copy of the parameter is made for each thread using CopyForAnotherThread.
i
Type: SystemInt32
The index to evaluate.

Type Parameters

TParameter1
The type of the first parameter passed to the body of the loop.
TParameter2
The type of the second parameter passed to the body of the loop.
See Also