22 throw std::runtime_error(
"Invalid call of ProgressHandler::subscribe: "
23 "currently, no more than one subscriber is allowed");
33 static std::mutex single_mutex;
34 std::unique_lock<std::mutex> single_lock(single_mutex);
Defines class ProgressHandler.
size_t m_completed_nticks
void subscribe(ProgressHandler::Callback_t callback)
void incrementDone(size_t ticks_done)
Increments number of completed computation steps (ticks).
std::function< bool(size_t)> Callback_t