MtxForLoop Unit

Functions

NameDescription
aSetLength (2)
CheckGlobalThreadPoolReturns initialized global thread pool.
EventReset
EventSet
EventWaitFor
ThreadedForLoop (2)Call this function to initiate threaded for-loop.
ThreadedWhileLoopCall this function to initiate threaded while-loop.

Classes

NameDescription
TInternalProgressThreadInternal background worker for CLR targets.
TLoopThreadThread type used by TMtxForLoop.
TMtxForLoopThe object implements everything neccessary to simplify threading of loops.
TMtxProgressRuntimeRuntime for background execution and progress reporting.

Enumerations

NameDescription
TEventStateInternal event state used by TMtxForLoop.
TMtxProgressEventDefines the thread event type.
TThreadAffinityModeDefines how the threads can be assigned to specific CPU cores.
TThreadingModeSpecifies threading mode for TMtxForLoop.

Events

NameDescription
TComputeEventCompute event signature.
TExceptionEventException event signature.
TForLoopEventEvent type to implement threaded for-loop within a method of object.
TForLoopRangeEventEvent type to implement threaded for-loop within a function.
TProgressUpdateEventProgress update event signature.
TWhileLoopEventEvent type to implement threaded while-loop within a method of object.