You are here: Symbol Reference > MtxForLoop Namespace > Functions > MtxForLoop.DoForLoop Function
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxForLoop.DoForLoop Function

Call this function to initiate threaded for-loop.

Pascal
function DoForLoop(IterMin: integer; IterMax: integer; MyLoop: TForLoopEvent; Threads: TMtxForLoop; const Context: array of TObject): boolean; overload;

The MyLoop method pointer must be a method. This is the function that will be called (IterMax - IterMin + 1) times. Threads parameter requires a TMtxForLoop object and Context can be used to pass any parameters to the threaded function. Computational load for each Iteration in the range from IterMin to IterMax is allowed to vary (possibly by a lot). Further vectorization within each threaded function call is not possible across the working Iteration range.

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