Navigation
API > API/Runtime > API/Runtime/PreLoadScreen
This class will handle all the nasty bits about running Slate on a separate thread and then trying to sync it up with the game thread and the render thread simultaneously
| Name | FPreLoadScreenSlateSynchMechanism |
| Type | class |
| Header File | /Engine/Source/Runtime/PreLoadScreen/Public/PreLoadSlateThreading.h |
| Include Path | #include "PreLoadSlateThreading.h" |
Syntax
class FPreLoadScreenSlateSynchMechanism
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| PreLoadSlateThreading.h | |||
FPreLoadScreenSlateSynchMechanism
(
TSharedPtr< FPreLoadSlateWidgetRenderer, ESPMode::ThreadSafe > InWidgetRenderer |
PreLoadSlateThreading.h | ||
| PreLoadSlateThreading.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPreLoadScreenSlateSynchMechanism() |
PreLoadSlateThreading.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| LoadingThreadInstanceCounter | TAtomic< int32 > | This counter is used to generate a unique id for each new instance of the loading thread | PreLoadSlateThreading.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsRunningSlateMainLoop | TAtomic< bool > | This counter handles running the main loop of the slate thread | PreLoadSlateThreading.h | |
| FPreLoadScreenSlateThreadTask | friend | PreLoadSlateThreading.h | ||
| SlateLoadingThread | FRunnableThread * | The worker thread that will become the Slate thread | PreLoadSlateThreading.h | |
| SlateRunnableTask | FRunnable * | PreLoadSlateThreading.h | ||
| SleepEvent | FEvent * | PreLoadSlateThreading.h | ||
| WidgetRenderer | TSharedPtr< FPreLoadSlateWidgetRenderer, ESPMode::ThreadSafe > | PreLoadSlateThreading.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DestroySlateThread() |
Cleans up the slate thread | PreLoadSlateThreading.h | |
void Initialize() |
Sets up the locks in their proper initial state for running | PreLoadSlateThreading.h | |
bool IsSlateMainLoopRunning_AnyThread() |
Handles the counter to determine if the slate thread should keep running | PreLoadSlateThreading.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPreLoadScreenSlateSynchMechanism & operator=
(
const FPreLoadScreenSlateSynchMechanism& |
PreLoadSlateThreading.h |