Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- FQueuedThreadPool
- FQueuedThreadPoolWrapper
- FQueuedThreadPoolDynamicWrapper
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPoolWrapper.h |
| Include | #include "Misc/QueuedThreadPoolWrapper.h" |
Syntax
class FQueuedThreadPoolDynamicWrapper : public FQueuedThreadPoolWrapper
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FQueuedThreadPoolDynamicWrapper
(
FQueuedThreadPool* InWrappedQueuedThreadPool, |
InWrappedQueuedThreadPool Underlying thread pool to schedule task to. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Sort
(
TFunctionRef< bool(const IQueuedWork*Lhs, const IQueuedWork*Rhs)> Predicate |
Apply sort predicate to reorder the queued tasks |
Overridden from FQueuedThreadPool
| Type | Name | Description | |
|---|---|---|---|
| void | AddQueuedWork
(
IQueuedWork* InQueuedWork, |
Checks to see if there is a thread available to perform the task. |