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.3.420.0 (24.3.420.0)
Syntax public delegate void BodyCallback2<TParameter1, TParameter2>(
TParameter1 parameter1,
TParameter2 parameter2,
int i
)
Public Delegate Sub BodyCallback2(Of TParameter1, TParameter2) (
parameter1 As TParameter1,
parameter2 As TParameter2,
i As Integer
)
generic<typename TParameter1, typename TParameter2>
public delegate void BodyCallback2(
TParameter1 parameter1,
TParameter2 parameter2,
int i
)
type BodyCallback2 =
delegate of
parameter1 : 'TParameter1 *
parameter2 : 'TParameter2 *
i : int -> unit
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