FQueuedThreadPool::Create

Creates the thread pool with the specified number of threads

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPool.h

Include

#include "Misc/QueuedThreadPool.h"

Syntax

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

Remarks

Creates the thread pool with the specified number of threads

Returns

Whether the pool creation was successful or not

Parameters

Parameter

Description

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss