MCPcopy Create free account
hub / github.com/BrunoLevy/geogram / task_progress

Function task_progress

src/lib/geogram/basic/progress.cpp:100–108  ·  view source on GitHub ↗

* \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() */

Source from the content-addressed store, hash-verified

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.

Callers 1

updateMethod · 0.85

Calls 1

progressMethod · 0.45

Tested by

no test coverage detected