载入中...
搜索中...
未找到
eve::pixelworld_thread::JobSystemPixelScheduler类 参考final

Synchronous PixelWorld candidate scheduler backed by engine JobSystem. 更多...

#include <PixelWorldThread.h>

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

Public 成员函数

 JobSystemPixelScheduler (eve::thread::JobSystem &jobs) noexcept
 Borrow a running scheduler.
 
void parallelFor (std::size_t workItems, const std::function< void(std::size_t)> &body) override
 Parallel for.
 
std::size_t workerCount () const noexcept override
 Worker count.
 
- Public 成员函数 继承自 eve::pixelworld::PixelWorkScheduler
virtual ~PixelWorkScheduler ()=default
 Releases PixelWorkScheduler resources.
 

详细描述

Synchronous PixelWorld candidate scheduler backed by engine JobSystem.

The adapter borrows JobSystem for its whole lifetime and never stops or owns it. parallelFor joins every submitted job before returning. Worker failure falls back to a deterministic serial overwrite of all index-owned result slots.

在文件 PixelWorldThread.h 第 20 行定义.

构造及析构函数说明

◆ JobSystemPixelScheduler()

eve::pixelworld_thread::JobSystemPixelScheduler::JobSystemPixelScheduler ( eve::thread::JobSystem &  jobs)
explicitnoexcept

Borrow a running scheduler.

参数
jobsJobSystem that must outlive this adapter and all calls.

在文件 PixelWorldThread.cpp 第 10 行定义.

成员函数说明

◆ parallelFor()

void eve::pixelworld_thread::JobSystemPixelScheduler::parallelFor ( std::size_t  workItems,
const std::function< void(std::size_t)> &  body 
)
overridevirtual

Parallel for.

参数
bodyVoid.

实现了 eve::pixelworld::PixelWorkScheduler.

在文件 PixelWorldThread.cpp 第 13 行定义.

引用了 body, first, index , 以及 eve::thread::JobSystem::parallelFor().

◆ workerCount()

std::size_t eve::pixelworld_thread::JobSystemPixelScheduler::workerCount ( ) const
overridevirtualnoexcept

Worker count.

实现了 eve::pixelworld::PixelWorkScheduler.

在文件 PixelWorldThread.cpp 第 29 行定义.

引用了 eve::thread::JobSystem::getWorkerCount().


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