Tomographer  v2.0
Tomographer C++ Framework Documentation
Tomographer::MultiProc::FullStatusReport< TaskStatusReportType > Struct Template Reference

A complete status report, abstract version. More...

#include <tomographer2/multiproc.h>

+ Collaboration diagram for Tomographer::MultiProc::FullStatusReport< TaskStatusReportType >:

Public Attributes

int num_completed
 Number of completed tasks.
 
int num_total_runs
 Total number of tasks to perform.
 
std::vector< bool > workers_running
 List specifying for each worker (e.g. a spawned thread) whether it is active or not. More...
 
std::vector< TaskStatusReportType, typename Tools::NeedOwnOperatorNew< TaskStatusReportType >::AllocatorType > workers_reports
 List with the raw report submitted from each individual thread. More...
 

Detailed Description

template<typename TaskStatusReportType>
struct Tomographer::MultiProc::FullStatusReport< TaskStatusReportType >

A complete status report, abstract version.

Note: TaskStatusReportType must be default-constructible and copy-constructible.

Definition at line 81 of file multiproc.h.

Member Data Documentation

template<typename TaskStatusReportType>
std::vector<TaskStatusReportType, typename Tools::NeedOwnOperatorNew<TaskStatusReportType>::AllocatorType> Tomographer::MultiProc::FullStatusReport< TaskStatusReportType >::workers_reports

List with the raw report submitted from each individual thread.

The length of this list is always the same as that of workers_running.

If worker number k (e.g. the k-th thread) is active and currently running a task, then workers_reports[k] is the raw status report that was submitted by that thread. If the thread is not running a task, tasks_reports[k] is an invalid, or default-constructed value.

Definition at line 117 of file multiproc.h.

template<typename TaskStatusReportType>
std::vector<bool> Tomographer::MultiProc::FullStatusReport< TaskStatusReportType >::workers_running

List specifying for each worker (e.g. a spawned thread) whether it is active or not.

If workers_running[k] is true, then the worker number k (e.g. the k -th thread) is currently running a task. Otherwise, it is inactive, for example an idle thread waiting (because of chunking of tasks, for example, or because there are are no new tasks to start)

Definition at line 105 of file multiproc.h.


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