/**
* General purpose parallel for that uses the taskgraph
* @param Num; number of calls of Body; Body(0), Body(1)....Body(Num - 1)
* @param Body; Function to call from multiple threads
* @param bForceSingleThread; Mostly used for testing, if true, run single threaded instead.
* Notes: Please add stats around to calls to parallel for and within your lambda as appropriate. Do not clog the task graph with long running tasks or tasks that block.
**/inlinevoidParallelFor(int32 Num, TFunctionRef<void(int32)> Body,bool bForceSingleThread,bool bPumpRenderingThread=false){
ParallelForImpl::ParallelForInternal(Num, Body,(bForceSingleThread ? EParallelForFlags::ForceSingleThread : EParallelForFlags::None)|(bPumpRenderingThread ? EParallelForFlags::PumpRenderingThread : EParallelForFlags::None));}