Loading...
Searching...
No Matches
gpr::linalg::TileBackground Class Reference

#include <gpr/linalg/TileParallel.h>

Public Member Functions

template<class F>
 TileBackground (long count, F &&fn)
void finish ()
 ~TileBackground ()
 TileBackground (const TileBackground &)=delete
TileBackground & operator= (const TileBackground &)=delete

Detailed Description

Items started on the workers by TilePool::start and joined when the object leaves scope, unless finish() joined them first.

Definition at line 253 of file TileParallel.h.

Constructor & Destructor Documentation

◆ TileBackground() [1/2]

template<class F>
gpr::linalg::TileBackground::TileBackground ( long count,
F && fn )
inline

Definition at line 256 of file TileParallel.h.

257 {
258 TilePool::instance().start(count, std::forward<F>(fn));
259 }
void start(long count, F &&fn)
static TilePool & instance()

◆ ~TileBackground()

gpr::linalg::TileBackground::~TileBackground ( )
inline

Definition at line 264 of file TileParallel.h.

265 {
266 try {
268 } catch (...) {
269 }
270 }
void finish()
Joins the items of start(); see there.

◆ TileBackground() [2/2]

gpr::linalg::TileBackground::TileBackground ( const TileBackground & )
delete

Member Function Documentation

◆ finish()

void gpr::linalg::TileBackground::finish ( )
inline

Definition at line 260 of file TileParallel.h.

261 {
263 }

◆ operator=()

TileBackground & gpr::linalg::TileBackground::operator= ( const TileBackground & )
delete

The documentation for this class was generated from the following file: