This a special version of singleton. 更多...
#include <ThreadSingleton.h>
类 TThreadSingleton< T > 继承关系图:静态 Public 成员函数 | |
| static FORCEINLINE T & | Get () |
| static FORCEINLINE T & | Get (TFunctionRef< FTlsAutoCleanup *()> CreateInstance) |
| static FORCEINLINE T * | TryGet () |
Protected 成员函数 | |
| TThreadSingleton () | |
| Default constructor. | |
静态 Protected 成员函数 | |
| static FTlsAutoCleanup * | CreateInstance () |
Protected 属性 | |
| const uint32 | ThreadId |
| Thread ID of this thread singleton. | |
额外继承的成员函数 | |
Public 成员函数 继承自 FTlsAutoCleanup | |
| void | Register () |
| Register this instance to be auto-cleanup. | |
| virtual | ~FTlsAutoCleanup () |
| Virtual destructor. | |
This a special version of singleton.
It means that there is created only one instance for each thread. Calling Get() method is thread-safe.
|
inlinestaticprotected |
|
inlinestatic |
|
inlinestatic |
| CreateInstance | Function to call when a new instance must be created. |
|
inlinestatic |