TThreadSingleton::Get

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/ThreadSingleton.h

Include

#include "HAL/ThreadSingleton.h"

Syntax

static T & Get
(
    TFunctionRef< FTlsAutoCleanup *()> CreateInstance
)

Returns

an instance of a singleton for the current thread.

Parameters

Parameter

Description

CreateInstance

Function to call when a new instance must be created.

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