engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
FThreadManager类 参考

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.

成员函数说明

◆ AddThread()

void FThreadManager::AddThread ( uint32  ThreadId,
class FRunnableThread *  Thread 
)

Used internally to add a new thread object.

参数
Threadthread object.
参见
RemoveThread

◆ Get()

static FThreadManager & FThreadManager::Get ( )
static

Access to the singleton object.

返回
Thread manager object.

◆ IsInitialized()

static FORCEINLINE bool FThreadManager::IsInitialized ( )
inlinestatic

Checks if thread manager has been initialized.

Avoids creating the manager trough lazy initialization

◆ RemoveThread()

void FThreadManager::RemoveThread ( class FRunnableThread *  Thread)

Used internally to remove thread object.

参数
Threadthread object to be removed.
参见
AddThread

该类的文档由以下文件生成: