FPreLoadScreenSlateSynchMechanism

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

Windows
MacOS
Linux

References

Module

PreLoadScreen

Header

/Engine/Source/Runtime/PreLoadScreen/Public/PreLoadSlateThreading.h

Include

#include "PreLoadSlateThreading.h"

Syntax

class FPreLoadScreenSlateSynchMechanism

Remarks

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

Constructors

Destructors

Functions

Name Description

Public function

void

 

DestroySlateThread()

Cleans up the slate thread

Public function

void

 

Initialize()

Sets up the locks in their proper initial state for running

Public function

bool

 

IsSlateDrawPassEnqueued()

Handles the strict alternation of the slate drawing passes

Public function

bool

 

IsSlateMainLoopRunning()

Handles the counter to determine if the slate thread should keep running

Public function

void

 

ResetSlateDrawPassEnqueued()

Public function

void

 

ResetSlateMainLoopRunning()

Public function

void

 

SetSlateDrawPassEnqueued()

Public function

void

 

SetSlateMainLoopRunning()

Public function

void

 

SlateThreadRunMainLoop()

The main loop to be run from the Slate thread

Constants

Name

Description

LoadingThreadInstanceCounter

This counter is used to generate a unique id for each new instance of the loading thread

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss