载入中...
搜索中...
未找到
eve::pixelworld::PixelWorkScheduler类 参考abstract

Synchronous executor for owning PixelWorld candidate buffers. 更多...

#include <PixelWorld.h>

类 eve::pixelworld::PixelWorkScheduler 继承关系图:
eve::pixelworld_thread::JobSystemPixelScheduler

Public 成员函数

virtual ~PixelWorkScheduler ()=default
 Releases PixelWorkScheduler resources.
 
virtual void parallelFor (std::size_t workItems, const std::function< void(std::size_t)> &body)=0
 Execute every index in [0, workItems) exactly once and synchronously join.
 
virtual std::size_t workerCount () const noexcept=0
 Observable worker capacity used for diagnostics only.
 

详细描述

Synchronous executor for owning PixelWorld candidate buffers.

Implementations may schedule indices on worker threads but must join before returning. PixelWorld controls the callback, which reads immutable phase state and writes only its index-owned buffer; implementations must not retain it.

在文件 PixelWorld.h 第 58 行定义.

构造及析构函数说明

◆ ~PixelWorkScheduler()

virtual eve::pixelworld::PixelWorkScheduler::~PixelWorkScheduler ( )
virtualdefault

Releases PixelWorkScheduler resources.

成员函数说明

◆ parallelFor()

virtual void eve::pixelworld::PixelWorkScheduler::parallelFor ( std::size_t  workItems,
const std::function< void(std::size_t)> &  body 
)
pure virtual

Execute every index in [0, workItems) exactly once and synchronously join.

参数
bodyVoid.

在 eve::pixelworld_thread::JobSystemPixelScheduler 内被实现.

◆ workerCount()

virtual std::size_t eve::pixelworld::PixelWorkScheduler::workerCount ( ) const
pure virtualnoexcept

Observable worker capacity used for diagnostics only.

在 eve::pixelworld_thread::JobSystemPixelScheduler 内被实现.


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