MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ParallelProgressReporter Class Reference

#include <MRMesh/MRParallelProgressReporter.h>

Classes

struct  PerTaskReporter
struct  TaskInfo

Public Member Functions

 ParallelProgressReporter (const ProgressCallback &cb)
PerTaskReporter newTask (float weight=1.f)
bool operator() ()

Detailed Description

This class allows progress to be reported from different threads. Unlike progress callback that is passed to ParallelFor, each task may report the progress separately, and the progress displayed to user is not just a number of completed tasks divided by the total number of tasks, but rather a (weighted) average of progresses reported from each task


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