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

#include <MRParallelProgressReporter.h>

Classes

struct  PerTaskReporter
 
struct  TaskInfo
 

Public Member Functions

MRMESH_API ParallelProgressReporter (const ProgressCallback &cb)
 
MRMESH_API PerTaskReporter newTask (float weight=1.f)
 
MRMESH_API 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: