TParallelForData

Struct to hold the working data; this outlives the ParallelFor call; lifetime is controlled by a shared pointer

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/ParallelFor.h

Include

#include "Async/ParallelFor.h"

Syntax

template<typename FunctionType>
struct TParallelForData

Remarks

Struct to hold the working data; this outlives the ParallelFor call; lifetime is controlled by a shared pointer

Variables

Name Description

Public variable

bool

 

bExited

Public variable

int32

 

BlockSize

Public variable

FunctionType

 

Body

Public variable

bool

 

bSaveLastBlockForMaster

Public variable

bool

 

bTriggered

Public variable

FEvent *

 

Event

Public variable

FThreadSafeCoun...

 

IndexToDo

Public variable

int32

 

LastBlockExtraNum

Public variable

int32

 

Num

Public variable

FThreadSafeCoun...

 

NumCompleted

Constructors

Name Description

Public function

TParallelForData

(
    int32 InTotalNum,
    int32 InNumThreads,
    bool bInSaveLastBlockForMaster,
    FunctionType InBody,
    EParallelForFlags Flags
)

Destructors

Name Description

Public function

~TParallelForData()

Functions

Name Description

Public function

bool

 

Process

(
    int32 TasksToSpawn,
    TSharedRef< TParallelForData, ESPMo...,
    bool bMaster
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss