Navigation
API > API/Runtime > API/Runtime/Core
ThreadPool wrapper implementation allowing to schedule up to MaxConcurrency tasks at a time making sub-partitioning another thread-pool a breeze and allowing more fine-grained control over scheduling by giving full control of task reordering.
| Name | FQueuedThreadPoolDynamicWrapper |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPoolWrapper.h |
| Include Path | #include "Misc/QueuedThreadPoolWrapper.h" |
Syntax
class FQueuedThreadPoolDynamicWrapper : public FQueuedThreadPoolWrapper
Inheritance Hierarchy
- FQueuedThreadPool → FQueuedThreadPoolWrapper → FQueuedThreadPoolDynamicWrapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FQueuedThreadPoolDynamicWrapper
(
FQueuedThreadPool* InWrappedQueuedThreadPool, |
InWrappedQueuedThreadPool Underlying thread pool to schedule task to. | Misc/QueuedThreadPoolWrapper.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Sort
(
TFunctionRef< bool(const IQueuedWork*Lhs, const IQueuedWork*Rhs)> Predicate |
Apply sort predicate to reorder the queued tasks | Misc/QueuedThreadPoolWrapper.h |
Overridden from FQueuedThreadPool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddQueuedWork
(
IQueuedWork* InQueuedWork, |
Checks to see if there is a thread available to perform the task. | Misc/QueuedThreadPoolWrapper.h |