* @brief Reset the tracker for a new processing batch. * * This must be called from single-threaded code before starting the multi-threaded processing * operations. */
| 147 | * operations. |
| 148 | */ |
| 149 | void reset() |
| 150 | { |
| 151 | m_init_done = false; |
| 152 | m_term_done = false; |
| 153 | m_is_cancelled = false; |
| 154 | m_start_count = 0; |
| 155 | m_done_count = 0; |
| 156 | m_task_count = 0; |
| 157 | m_callback = nullptr; |
| 158 | m_callback_last_value = 0.0f; |
| 159 | m_callback_min_diff = 1.0f; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * @brief Clear the tracker and stop new tasks being assigned. |
no outgoing calls
no test coverage detected