Module |
|
Header |
/Engine/Source/Runtime/Core/Public/HAL/Thread.h |
Include |
#include "HAL/Thread.h" |
Source |
/Engine/Source/Runtime/Core/Private/HAL/Thread.cpp |
FThread
(
TCHAR const * ThreadName,
TUniqueFunction< void()> && ThreadFunction,
uint32 StackSize,
EThreadPriority ThreadPriority,
uint64 ThreadAffinityMask
)
Creates and immediately starts a new system thread that will execute `ThreadFunction_ argument. Can return before the thread is actually started or when it already finished execution.
Parameter |
Description |
---|---|
ThreadName |
Name of the thread |
ThreadFunction |
The function that will be executed by the newly created thread |
StackSize |
The size of the stack to create. 0 means use the current thread's stack size |
ThreadPriority |
Tells the thread whether it needs to adjust its priority or not. Defaults to normal priority |