Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FThread
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FThread () |
Creates new "empty" thread object that doesn't represent a system thread | HAL/Thread.h | |
FThread
(
TCHAR const* ThreadName, |
Creates and immediately starts a new system thread that will execute `ThreadFunction_ argument. | HAL/Thread.h |
FThread()
Description
Creates new "empty" thread object that doesn't represent a system thread
| Name | FThread |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/Thread.h |
| Include Path | #include "HAL/Thread.h" |
FThread()
FThread(TCHAR const *, TUniqueFunction< void()> &&, uint32, EThreadPriority, FThreadAffinity, EForkable)
Description
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.
| Name | FThread |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/Thread.h |
| Include Path | #include "HAL/Thread.h" |
| Source | /Engine/Source/Runtime/Core/Private/HAL/Thread.cpp |
FThread
(
TCHAR const * ThreadName,
TUniqueFunction < void> && ThreadFunction,
uint32 StackSize,
EThreadPriority ThreadPriority,
FThreadAffinity ThreadAffinity,
EForkable IsForkable
)
Parameters
| Name | Remarks |
|---|---|
| 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 |
| ThreadAffinity | Tells the thread whether it needs to adjust its affinity or not. Defaults to no affinity |
| IsForkable | Tells the thread whether it can be forked. Defaults to NonForkable |