UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FQueuedThreadPoolTaskGraphWrapper Class Referencefinal

#include <QueuedThreadPoolWrapper.h>

+ Inheritance diagram for FQueuedThreadPoolTaskGraphWrapper:

Public Member Functions

 FQueuedThreadPoolTaskGraphWrapper (TFunction< ENamedThreads::Type(EQueuedWorkPriority)> InPriorityMapper=nullptr)
 
 FQueuedThreadPoolTaskGraphWrapper (ENamedThreads::Type InDesiredThread)
 
 ~FQueuedThreadPoolTaskGraphWrapper ()
 
- Public Member Functions inherited from FQueuedThreadPool
virtual bool CreateForkable (uint32 InNumQueuedThreads, uint32 StackSize=(32 *1024), EThreadPriority ThreadPriority=TPri_Normal, const TCHAR *Name=TEXT("UnknownThreadPool"))
 
CORE_API FQueuedThreadPool ()
 
virtual CORE_API ~FQueuedThreadPool ()
 

Protected Member Functions

bool Create (uint32 InNumQueuedThreads, uint32 StackSize, EThreadPriority ThreadPriority, const TCHAR *Name) override
 
void Destroy () override
 

Additional Inherited Members

- Static Public Member Functions inherited from FQueuedThreadPool
static CORE_API FQueuedThreadPoolAllocate ()
 
- Static Public Attributes inherited from FQueuedThreadPool
static CORE_API uint32 OverrideStackSize = 0
 

Detailed Description

ThreadPool wrapper implementation allowing to schedule thread-pool tasks on the task graph.

Constructor & Destructor Documentation

◆ FQueuedThreadPoolTaskGraphWrapper() [1/2]

FQueuedThreadPoolTaskGraphWrapper::FQueuedThreadPoolTaskGraphWrapper ( TFunction< ENamedThreads::Type(EQueuedWorkPriority)>  InPriorityMapper = nullptr)
inline

InPriorityMapper Thread-safe function used to map any priority from this Queue to the priority that should be used when scheduling the task on the task graph.

◆ FQueuedThreadPoolTaskGraphWrapper() [2/2]

FQueuedThreadPoolTaskGraphWrapper::FQueuedThreadPoolTaskGraphWrapper ( ENamedThreads::Type  InDesiredThread)
inline

InDesiredThread The task-graph desired thread and priority.

◆ ~FQueuedThreadPoolTaskGraphWrapper()

FQueuedThreadPoolTaskGraphWrapper::~FQueuedThreadPoolTaskGraphWrapper ( )
inline

Member Function Documentation

◆ Create()

bool FQueuedThreadPoolTaskGraphWrapper::Create ( uint32  InNumQueuedThreads,
uint32  StackSize,
EThreadPriority  ThreadPriority,
const TCHAR Name 
)
inlineoverrideprotectedvirtual

Creates the thread pool with the specified number of threads

Parameters
InNumQueuedThreadsSpecifies the number of threads to use in the pool
StackSizeThe size of stack the threads in the pool need (32K default)
ThreadPrioritypriority of new pool thread
Nameoptional name for the pool to be used for instrumentation
Returns
Whether the pool creation was successful or not

Implements FQueuedThreadPool.

◆ Destroy()

void FQueuedThreadPoolTaskGraphWrapper::Destroy ( )
inlineoverrideprotectedvirtual

Tells the pool to clean up all background threads

Implements FQueuedThreadPool.


The documentation for this class was generated from the following file: