Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TThreadSingleton
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static T & Get () |
HAL/ThreadSingleton.h | ||
static T & Get
(
TFunctionRef< FTlsAutoCleanup*()> CreateInstance |
HAL/ThreadSingleton.h |
Get()
| Name | Get |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/ThreadSingleton.h |
| Include Path | #include "HAL/ThreadSingleton.h" |
static T & Get()
an instance of a singleton for the current thread.
Get(TFunctionRef< FTlsAutoCleanup *()>)
| Name | Get |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/ThreadSingleton.h |
| Include Path | #include "HAL/ThreadSingleton.h" |
static T & Get
(
TFunctionRef < FTlsAutoCleanup *> CreateInstance
)
an instance of a singleton for the current thread.
Parameters
| Name | Remarks |
|---|---|
| CreateInstance | Function to call when a new instance must be created. |