Manages runnables and runnable threads. 更多...
#include <ThreadManager.h>
Public 成员函数 | |
| void | AddThread (uint32 ThreadId, class FRunnableThread *Thread) |
| Used internally to add a new thread object. 更多... | |
| void | ForEachThread (TFunction< void(uint32, class FRunnableThread *)> Func) |
| Enumerate each thread. | |
| void | RemoveThread (class FRunnableThread *Thread) |
| Used internally to remove thread object. 更多... | |
| void | Tick () |
| Ticks all fake threads and their runnable objects. | |
静态 Public 成员函数 | |
| static FThreadManager & | Get () |
| Access to the singleton object. 更多... | |
| static const FString & | GetThreadName (uint32 ThreadId) |
| Returns the name of a thread given its TLS id | |
| static FORCEINLINE bool | IsInitialized () |
| Checks if thread manager has been initialized. 更多... | |
友元 | |
| class | FForkProcessHelper |
Manages runnables and runnable threads.
| void FThreadManager::AddThread | ( | uint32 | ThreadId, |
| class FRunnableThread * | Thread | ||
| ) |
|
static |
Access to the singleton object.
|
inlinestatic |
Checks if thread manager has been initialized.
Avoids creating the manager trough lazy initialization
| void FThreadManager::RemoveThread | ( | class FRunnableThread * | Thread | ) |