#include <ored/utilities/progressbar.hpp>
Public Member Functions | |
MultiThreadedProgressIndicator (const std::set< QuantLib::ext::shared_ptr< ProgressIndicator > > &indicators) | |
void | updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail) override |
void | reset () override |
Public Member Functions inherited from ProgressIndicator | |
ProgressIndicator () | |
virtual | ~ProgressIndicator () |
virtual void | updateProgress (const unsigned long progress, const unsigned long total, const std::string &detail)=0 |
virtual void | reset ()=0 |
Private Attributes | |
boost::shared_mutex | mutex_ |
std::set< QuantLib::ext::shared_ptr< ProgressIndicator > > | indicators_ |
std::map< std::thread::id, std::tuple< unsigned long, unsigned long, std::string > > | threadData_ |
Progress Manager that consolidates updates from multiple threads
Definition at line 130 of file progressbar.hpp.
|
explicit |
Definition at line 114 of file progressbar.cpp.
|
overridevirtual |
Implements ProgressIndicator.
Definition at line 118 of file progressbar.cpp.
|
overridevirtual |
Implements ProgressIndicator.
Definition at line 136 of file progressbar.cpp.
|
mutableprivate |
Definition at line 137 of file progressbar.hpp.
|
private |
Definition at line 138 of file progressbar.hpp.
|
private |
Definition at line 139 of file progressbar.hpp.