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

Public Member Functions

 FSlateLoadingThreadTask (class FSlateLoadingSynchronizationMechanism &InSyncMechanism)
 
virtual bool Init () override
 
virtual uint32 Run () override
 
virtual void Exit () override
 
virtual void Stop () override
 
- Public Member Functions inherited from FRunnable
virtual class FSingleThreadRunnableGetSingleThreadInterface ()
 
virtual ~FRunnable ()
 

Detailed Description

The Slate thread is simply run on a worker thread. Slate is run on another thread because the game thread (where Slate is usually run) is blocked loading things. Slate is very modular, which makes it very easy to run on another thread with no adverse effects. It does not enqueue render commands, because the RHI is not thread safe. Thus, it waits to enqueue render commands until the render thread tickables ticks, and then it calls them there.

Constructor & Destructor Documentation

◆ FSlateLoadingThreadTask()

FSlateLoadingThreadTask::FSlateLoadingThreadTask ( class FSlateLoadingSynchronizationMechanism InSyncMechanism)
inline

Member Function Documentation

◆ Exit()

void FSlateLoadingThreadTask::Exit ( void  )
overridevirtual

Exits the runnable object.

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

See also
Init, Run, Stop

Reimplemented from FRunnable.

◆ Init()

bool FSlateLoadingThreadTask::Init ( void  )
overridevirtual

FRunnable interface

Reimplemented from FRunnable.

◆ Run()

uint32 FSlateLoadingThreadTask::Run ( )
overridevirtual

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.

◆ Stop()

void FSlateLoadingThreadTask::Stop ( void  )
overridevirtual

Stops the runnable object.

This is called if a thread is requested to terminate early.

See also
Init, Run, Exit

Reimplemented from FRunnable.


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