* \brief Notifies clients that a task progresses. * \details This function is called by ProgressTask::progress() to * notify registered LoggerClient%s that the execution step has * changed. * \param[in] step the current progress step * \param[in] percent the percentage of completion of the task * \see LoggerClient::progress() */
| 98 | * \see LoggerClient::progress() |
| 99 | */ |
| 100 | void task_progress(index_t step, index_t percent) { |
| 101 | if(task_canceled_) { |
| 102 | throw TaskCanceled(); |
| 103 | } |
| 104 | |
| 105 | if(progress_client_) { |
| 106 | progress_client_->progress(step, percent); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * \brief Notifies clients that a task has ended. |