engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TAsyncGraphTask< ResultType > 模板类 参考

Template for asynchronous functions that are executed in the Task Graph system. 更多...

#include <Async.h>

+ 类 TAsyncGraphTask< ResultType > 继承关系图:

Public 成员函数

void DoTask (ENamedThreads::Type CurrentThread, const FGraphEventRef &MyCompletionGraphEvent)
 Performs the actual task. 更多...
 
ENamedThreads::Type GetDesiredThread ()
 Returns the name of the thread that this task should run on. 更多...
 
TFuture< ResultType > GetFuture ()
 Gets the future that will hold the asynchronous result. 更多...
 
 TAsyncGraphTask (TUniqueFunction< ResultType()> &&InFunction, TPromise< ResultType > &&InPromise, ENamedThreads::Type InDesiredThread=ENamedThreads::AnyThread)
 Creates and initializes a new instance. 更多...
 
- Public 成员函数 继承自 FAsyncGraphTaskBase
TStatId GetStatId () const
 Gets the task's stats tracking identifier. 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FAsyncGraphTaskBase
static ESubsequentsMode::Type GetSubsequentsMode ()
 Gets the mode for tracking subsequent tasks. 更多...
 

详细描述

template<typename ResultType>
class TAsyncGraphTask< ResultType >

Template for asynchronous functions that are executed in the Task Graph system.

构造及析构函数说明

◆ TAsyncGraphTask()

template<typename ResultType >
TAsyncGraphTask< ResultType >::TAsyncGraphTask ( TUniqueFunction< ResultType()> &&  InFunction,
TPromise< ResultType > &&  InPromise,
ENamedThreads::Type  InDesiredThread = ENamedThreads::AnyThread 
)
inline

Creates and initializes a new instance.

参数
InFunctionThe function to execute asynchronously.
InPromiseThe promise object used to return the function's result.

成员函数说明

◆ DoTask()

template<typename ResultType >
void TAsyncGraphTask< ResultType >::DoTask ( ENamedThreads::Type  CurrentThread,
const FGraphEventRef &  MyCompletionGraphEvent 
)
inline

Performs the actual task.

参数
CurrentThreadThe thread that this task is executing on.
MyCompletionGraphEventThe completion event.

◆ GetDesiredThread()

template<typename ResultType >
ENamedThreads::Type TAsyncGraphTask< ResultType >::GetDesiredThread ( )
inline

Returns the name of the thread that this task should run on.

返回
Always run on any thread.

◆ GetFuture()

template<typename ResultType >
TFuture< ResultType > TAsyncGraphTask< ResultType >::GetFuture ( )
inline

Gets the future that will hold the asynchronous result.

返回
A TFuture object.

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