@@ -18,12 +18,12 @@ void TaskResolver::own_task(TaskPtr&& new_task) {
1818 if (task->cmd () == new_task->cmd ()) {
1919 if (task->options_match (new_task)) {
2020 std::string msg = " similar task is already in execution, reject new " + new_task->info () + " and waiting for old " + task->info () + " execution" ;
21- new_task->fail (msg);
21+ new_task->set_fail (msg);
2222 } else {
2323 // handle case when task has same cmd but different options
2424 if (new_task->job_id () > task->job_id ()) {
2525 std::string msg = " old " + task->info () + " is overridden by a new " + new_task->info ();
26- task->fail (msg);
26+ task->set_fail (msg);
2727 }
2828 }
2929 }
@@ -102,21 +102,21 @@ void TaskResolver::process_get_path_list_task(ezgl::application*, const TaskPtr&
102102 CritPathsResultPtr crit_paths_result = calc_critical_path (path_type, n_critical_path_num, details_level_opt.value (), is_flat);
103103 if (crit_paths_result->is_valid ()) {
104104 server_ctx.crit_paths = std::move (crit_paths_result->paths );
105- task->success (std::move (crit_paths_result->report ));
105+ task->set_success (std::move (crit_paths_result->report ));
106106 } else {
107107 std::string msg{" Critical paths report is empty" };
108108 VTR_LOG_ERROR (msg.c_str ());
109- task->fail (msg);
109+ task->set_fail (msg);
110110 }
111111 } else {
112112 std::string msg{" unsupported report details level " + details_level_str};
113113 VTR_LOG_ERROR (msg.c_str ());
114- task->fail (msg);
114+ task->set_fail (msg);
115115 }
116116 } else {
117117 std::string msg{" options errors in get crit path list telegram: " + options.errors_str ()};
118118 VTR_LOG_ERROR (msg.c_str ());
119- task->fail (msg);
119+ task->set_fail (msg);
120120 }
121121}
122122
@@ -138,16 +138,16 @@ void TaskResolver::process_draw_critical_path_task(ezgl::application* app, const
138138 gint high_light_mode_index = get_item_index_by_text (toggle_crit_path, high_light_mode.c_str ());
139139 if (high_light_mode_index != -1 ) {
140140 gtk_combo_box_set_active (toggle_crit_path, high_light_mode_index);
141- task->success ();
141+ task->set_success ();
142142 } else {
143143 std::string msg{" cannot find ToggleCritPath qcombobox index for item " + high_light_mode};
144144 VTR_LOG_ERROR (msg.c_str ());
145- task->fail (msg);
145+ task->set_fail (msg);
146146 }
147147 } else {
148148 std::string msg{" options errors in highlight crit path telegram: " + options.errors_str ()};
149149 VTR_LOG_ERROR (msg.c_str ());
150- task->fail (msg);
150+ task->set_fail (msg);
151151 }
152152}
153153
0 commit comments