Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL > API/Runtime/Core/HAL/TThreadSingleton > API/Runtime/Core/HAL/TThreadSingleton/Get
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/HAL/ThreadSingleton.h |
| Include | #include "HAL/ThreadSingleton.h" |
static T & Get
&40;
TFunctionRef< FTlsAutoCleanup &42;()> CreateInstance
&41;
an instance of a singleton for the current thread.
Parameters
| Name | Description |
|---|---|
| CreateInstance | Function to call when a new instance must be created. |