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

Base class for all tasks. 更多...

#include <TaskGraphInterfaces.h>

+ 类 FBaseGraphTask 继承关系图:

Public 类型

enum  { SMALL_TASK_SIZE = 256 }
 

Protected 成员函数

void ConditionalQueueTask (ENamedThreads::Type CurrentThread)
 An indication that a prerequisite has been completed. 更多...
 
 FBaseGraphTask (int32 InNumberOfPrerequistitesOutstanding)
 Constructor 更多...
 
void PrerequisitesComplete (ENamedThreads::Type CurrentThread, int32 NumAlreadyFinishedPrequistes, bool bUnlock=true)
 Indicates that the prerequisites are set up and that the task can be executed as soon as the prerequisites are finished. 更多...
 
void SetThreadToExecuteOn (ENamedThreads::Type InThreadToExecuteOn)
 Sets the desired execution thread. 更多...
 
virtual ~FBaseGraphTask ()
 destructor, just checks the life stage
 

静态 Protected 成员函数

static CORE_API TSmallTaskAllocator & GetSmallTaskAllocator ()
 Singleton to retrieve the small task allocator
 
static void CORE_API LogPossiblyInvalidSubsequentsTask (const TCHAR *TaskName)
 Logs a task name that may contain invalid subsequents. 更多...
 

友元

class FGraphEvent
 

详细描述

Base class for all tasks.

Tasks go through a very specific life stage progression, and this is verified.

成员枚举类型说明

◆ anonymous enum

anonymous enum
枚举值
SMALL_TASK_SIZE 

Total size in bytes for a small task that will use the custom allocator

构造及析构函数说明

◆ FBaseGraphTask()

FBaseGraphTask::FBaseGraphTask ( int32  InNumberOfPrerequistitesOutstanding)
inlineprotected

Constructor

参数
InNumberOfPrerequistitesOutstanding;the number of prerequisites outstanding. We actually add one to this to prevent the task from firing while we are setting up the task

成员函数说明

◆ ConditionalQueueTask()

void FBaseGraphTask::ConditionalQueueTask ( ENamedThreads::Type  CurrentThread)
inlineprotected

An indication that a prerequisite has been completed.

Reduces the number of prerequisites by one and if no prerequisites are outstanding, it queues the task for execution.

参数
CurrentThread;provides the index of the thread we are running on. This is handy for submitting new taks. Can be ENamedThreads::AnyThread if the current thread is unknown.

◆ LogPossiblyInvalidSubsequentsTask()

static void CORE_API FBaseGraphTask::LogPossiblyInvalidSubsequentsTask ( const TCHAR *  TaskName)
staticprotected

Logs a task name that may contain invalid subsequents.

Debug only.

◆ PrerequisitesComplete()

void FBaseGraphTask::PrerequisitesComplete ( ENamedThreads::Type  CurrentThread,
int32  NumAlreadyFinishedPrequistes,
bool  bUnlock = true 
)
inlineprotected

Indicates that the prerequisites are set up and that the task can be executed as soon as the prerequisites are finished.

参数
NumAlreadyFinishedPrequistes;the number of prerequisites that have not been set up because those tasks had already completed.
bUnlock;if true, let the task execute if it can

◆ SetThreadToExecuteOn()

void FBaseGraphTask::SetThreadToExecuteOn ( ENamedThreads::Type  InThreadToExecuteOn)
inlineprotected

Sets the desired execution thread.

This is not part of the constructor because this information may not be known quite yet duiring construction.

参数
InThreadToExecuteOn;the desired thread to execute on.

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