Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FForkProcessHelper
Description
Creates a thread according to the environment it's in: In environments with SupportsMultithreading: create a real thread that will tick the runnable object itself In environments without multithreading: create a fake thread that is ticked by the main thread. In environments without multithreading but that allows multithreading post-fork: If called on the original master process: will create a forkable thread that is ticked in the main thread pre-fork but becomes a real thread post-fork If called on a forked child process: will create a real thread immediately
| Name | CreateForkableThread |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Fork.h |
| Include Path | #include "Misc/Fork.h" |
| Source | /Engine/Source/Runtime/Core/Private/HAL/ThreadingBase.cpp |
static FRunnableThread * CreateForkableThread
(
class FRunnable * InRunnable,
const TCHAR * InThreadName,
uint32 InStackSize,
EThreadPriority InThreadPri,
uint64 InThreadAffinityMask,
EThreadCreateFlags InCreateFlags,
bool bAllowPreFork
)