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

Choose your operating system:

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 Const

bool

 

IsSlateMainLoopRunning_AnyThread()

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

Operators

Name Description

Public function

FPreLoadScre...

 

operator=

(
    const FPreLoadScreenSlateSynchMecha...
)

Constants

Name

Description

LoadingThreadInstanceCounter

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