Libmagicxx v9.0.2
A C++ wrapper library over the Magic Number Recognition Library.
Loading...
Searching...
No Matches
progress_tracker.hpp File Reference
#include <chrono>
#include <condition_variable>
#include <mutex>
#include "percentage.hpp"
Include dependency graph for progress_tracker.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  recognition::utility::progress_tracker
 Thread-safe tracker for monitoring the progress of a job composed of multiple steps. More...
 
class  recognition::utility::mark_tracker_as_completed
 RAII helper that marks a shared progress_tracker as completed upon destruction. More...
 
class  recognition::utility::advance_tracker
 RAII helper that advances a shared progress_tracker by a given step count upon destruction. More...
 

Namespaces

namespace  recognition
 
namespace  recognition::utility
 

Typedefs

using recognition::utility::shared_progress_tracker_t = std::shared_ptr<progress_tracker>
 Alias for a shared pointer to progress_tracker.
 

Functions

shared_progress_tracker_t recognition::utility::make_shared_progress_tracker (std::uint64_t total_steps=1u) noexcept
 Create a shared pointer to a progress_tracker.