Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/FForkProcessHelper
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/Fork.h |
Include | #include "Misc/Fork.h" |
Source | /Engine/Source/Runtime/Core/Private/HAL/ThreadingBase.cpp |
static FRunnableThread &42; CreateForkableThread
&40;
class FRunnable &42; InRunnable,
const TCHAR &42; InThreadName,
uint32 InStackSize,
EThreadPriority InThreadPri,
uint64 InThreadAffinityMask,
EThreadCreateFlags InCreateFlags
&41;
Remarks
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