Module |
|
Header |
/Engine/Source/Runtime/Core/Public/HAL/ThreadSingleton.h |
Include |
#include "HAL/ThreadSingleton.h" |
template<class T>
class TThreadSingleton : public FTlsAutoCleanup
This a special version of singleton. It means that there is created only one instance for each thread. Calling Get() method is thread-safe.
Name | Description | ||
---|---|---|---|
|
const uint32 |
ThreadId |
Thread ID of this thread singleton. |
Name | Description | |
---|---|---|
|
TThreadSingleton() |
Default constructor. |
Name | Description | ||
---|---|---|---|
|
FTlsAutoClea... |
CreateInstance() |
|
|
T & |
Get() |
|
|
T & |
Get ( |
|
|
T * |
TryGet() |