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

Event type to implement threaded while-loop within a function.

Pascal
TWhileLoopFunEvent = procedure (var Stop: boolean; const Context: TObjectArray; ThreadIndex: integer);

The while loop will not terminate until Stop variable will return True. The context contain's any parameters passed to the DoWhileLoop 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!