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

Template for asynchronous functions that are executed in the queued thread pool. 更多...

#include <Async.h>

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

Public 成员函数

virtual void Abandon () override
 Tells the queued work that it is being abandoned so that it can do per object clean up as needed. 更多...
 
virtual void DoThreadedWork () override
 This is where the real thread work is done. 更多...
 
 TAsyncQueuedWork (TUniqueFunction< ResultType()> &&InFunction, TPromise< ResultType > &&InPromise)
 Creates and initializes a new instance. 更多...
 
- Public 成员函数 继承自 IQueuedWork
virtual void Abandon ()=0
 Tells the queued work that it is being abandoned so that it can do per object clean up as needed. 更多...
 
virtual void DoThreadedWork ()=0
 This is where the real thread work is done. 更多...
 
virtual ~IQueuedWork ()
 Virtual destructor so that child implementations are guaranteed a chance to clean up any resources they allocated.
 

详细描述

template<typename ResultType>
class TAsyncQueuedWork< ResultType >

Template for asynchronous functions that are executed in the queued thread pool.

构造及析构函数说明

◆ TAsyncQueuedWork()

template<typename ResultType >
TAsyncQueuedWork< ResultType >::TAsyncQueuedWork ( TUniqueFunction< ResultType()> &&  InFunction,
TPromise< ResultType > &&  InPromise 
)
inline

Creates and initializes a new instance.

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

成员函数说明

◆ Abandon()

template<typename ResultType >
virtual void TAsyncQueuedWork< ResultType >::Abandon ( )
inlineoverridevirtual

Tells the queued work that it is being abandoned so that it can do per object clean up as needed.

This will only be called if it is being abandoned before completion. NOTE: This requires the object to delete itself using whatever heap it was allocated in.

实现了 IQueuedWork.

◆ DoThreadedWork()

template<typename ResultType >
virtual void TAsyncQueuedWork< ResultType >::DoThreadedWork ( )
inlineoverridevirtual

This is where the real thread work is done.

All work that is done for this queued object should be done from within the call to this function.

实现了 IQueuedWork.


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