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: TForLoopRangeFunEvent; Threads: TMtxForLoop; const Context: array of TObject): boolean; overload;

The MyLoop method pointer must be a function (not object method). This is the function that will be called once and will allow further code vectorization inside the thread. Threads parameter requires a TMtxForLoop object and Context can be used to pass any parameters to the threaded function.

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