You are here: Symbol Reference > MtxForLoop Namespace > Types > MtxForLoop.TForLoopFunEvent Type
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxForLoop.TForLoopFunEvent Type

Event type to implement threaded for loop within a function.

Pascal
TForLoopFunEvent = procedure (LoopIndex: integer; const Context: TObjectArray; ThreadIndex: integer);

LoopIndex specifies the current iteration of the for-loop between IterMin and IterMax as specified by the DoForLoop function. The context contains any parameters passed to the DoForLoop function,when threading was initialized. ThreadIndex parameter will vary from 0 to ThreadCount-1 depending on the thread that is running. ThreadIndex can be used to partition the data within the event.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!