Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- FQueuedThreadPool
- FQueuedLowLevelThreadPool
- FQueuedThreadPoolTaskGraphWrapper
- FQueuedThreadPoolWrapper
- FQueuedThreadPoolDynamicWrapper
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPool.h |
| Include | #include "Misc/QueuedThreadPool.h" |
Syntax
class FQueuedThreadPool
Remarks
Interface for queued thread pools.
This interface is used by all queued thread pools. It used as a callback by FQueuedThreads and is used to queue asynchronous work for callers.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddQueuedWork
(
IQueuedWork* InQueuedWork, |
Checks to see if there is a thread available to perform the task. | |
| FQueuedThreadPool * | Allocate () |
Allocates a thread pool | |
| bool | Create
(
uint32 InNumQueuedThreads, |
Creates the thread pool with the specified number of threads | |
| bool | CreateForkable
(
uint32 InNumQueuedThreads, |
Creates the thread pool with the specified number of forkable threads (see FForkProcessHelper) | |
| void | Destroy () |
Tells the pool to clean up all background threads | |
| int32 | Get the number of queued threads | ||
| bool | RetractQueuedWork
(
IQueuedWork* InQueuedWork |
Attempts to retract a previously queued task. |
Constants
| Name | Description |
|---|---|
| OverrideStackSize | Stack size for threads created for the thread pool. |