Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FQueuedThreadPool
Description
Creates the thread pool with the specified number of forkable threads (see FForkProcessHelper)
Currently only works after the process has been forked because GetSingleThreadInterface() isn't implemented for pooled threads
| Name | CreateForkable |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPool.h |
| Include Path | #include "Misc/QueuedThreadPool.h" |
virtual bool CreateForkable
(
uint32 InNumQueuedThreads,
uint32 StackSize,
EThreadPriority ThreadPriority,
const TCHAR * Name
)
Whether the pool creation was successful or not
Parameters
| Name | Remarks |
|---|---|
| InNumQueuedThreads | Specifies the number of threads to use in the pool |
| StackSize | The size of stack the threads in the pool need (32K default) |
| ThreadPriority | priority of new pool thread |
| Name | optional name for the pool to be used for instrumentation |