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 |
|
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 |
|
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. |
|
staticprotected |
Logs a task name that may contain invalid subsequents.
Debug only.
|
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 |
|
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. |