stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
progress.hpp File Reference

Progress tracking wrapper for concurrent tasks. More...

#include <atomic>
#include <functional>
#include <memory>

Go to the source code of this file.

Classes

class  stlab::progress_tracker
 Tracks how many wrapped tasks are in flight and how many have completed. More...

Detailed Description

Progress tracking wrapper for concurrent tasks.

Wrap callables with progress_tracker::operator() to count outstanding steps; optional callback receives (steps, completed) when tasks finish.