UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FChildWaiterThread Struct Reference
+ Inheritance diagram for FChildWaiterThread:

Public Member Functions

 FChildWaiterThread (pid_t InChildPid)
 
virtual ~FChildWaiterThread ()
 
virtual uint32 Run ()
 
virtual void Exit ()
 
- Public Member Functions inherited from FRunnable
virtual bool Init ()
 
virtual void Stop ()
 
virtual class FSingleThreadRunnableGetSingleThreadInterface ()
 
virtual ~FRunnable ()
 

Public Attributes

int ChildPid
 

Static Public Attributes

static TArray< FChildWaiterThread * > ChildWaiterThreadsArray
 
static FCriticalSection ChildWaiterThreadsArrayGuard
 

Detailed Description

This class exists as an imperfect workaround to allow both "fire and forget" children and children about whose return code we actually care. (maybe we could fork and daemonize ourselves for the first case instead?)

Constructor & Destructor Documentation

◆ FChildWaiterThread()

FChildWaiterThread::FChildWaiterThread ( pid_t  InChildPid)
inline

◆ ~FChildWaiterThread()

virtual FChildWaiterThread::~FChildWaiterThread ( )
inlinevirtual

Member Function Documentation

◆ Exit()

virtual void FChildWaiterThread::Exit ( void  )
inlinevirtual

Exits the runnable object.

Called in the context of the aggregating thread to perform any cleanup.

See also
Init, Run, Stop

Reimplemented from FRunnable.

◆ Run()

virtual uint32 FChildWaiterThread::Run ( )
inlinevirtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

Returns
The exit code of the runnable object
See also
Init, Stop, Exit

Implements FRunnable.

Member Data Documentation

◆ ChildPid

int FChildWaiterThread::ChildPid

Pid of child to wait for

◆ ChildWaiterThreadsArray

TArray< FChildWaiterThread * > FChildWaiterThread::ChildWaiterThreadsArray
static

Global table of all waiter threads

See FChildWaiterThread

◆ ChildWaiterThreadsArrayGuard

FCriticalSection FChildWaiterThread::ChildWaiterThreadsArrayGuard
static

Lock guarding the acess to child waiter threads

See FChildWaiterThread


The documentation for this struct was generated from the following file: