engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IQueuedWork类 参考abstract

Interface for queued work objects. 更多...

#include <IQueuedWork.h>

+ 类 IQueuedWork 继承关系图:

Public 成员函数

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.
 

详细描述

Interface for queued work objects.

This interface is a type of runnable object that requires no per thread initialization. It is meant to be used with pools of threads in an abstract way that prevents the pool from needing to know any details about the object being run. This allows queuing of disparate tasks and servicing those tasks with a generic thread pool.

成员函数说明

◆ Abandon()

virtual void IQueuedWork::Abandon ( )
pure virtual

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.

在 TAsyncQueuedWork< ResultType > 内被实现.

◆ DoThreadedWork()

virtual void IQueuedWork::DoThreadedWork ( )
pure virtual

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.

在 TAsyncQueuedWork< ResultType > 内被实现.


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