| 144 | } |
| 145 | |
| 146 | static void cpg_inst_finalize (struct cpg_inst *cpg_inst, hdb_handle_t handle) |
| 147 | { |
| 148 | struct qb_list_head *iter, *tmp_iter; |
| 149 | struct cpg_iteration_instance_t *cpg_iteration_instance; |
| 150 | |
| 151 | /* |
| 152 | * Traverse thru iteration instances and delete them |
| 153 | */ |
| 154 | qb_list_for_each_safe(iter, tmp_iter, &(cpg_inst->iteration_list_head)) { |
| 155 | cpg_iteration_instance = qb_list_entry (iter, struct cpg_iteration_instance_t, list); |
| 156 | |
| 157 | cpg_iteration_instance_finalize (cpg_iteration_instance); |
| 158 | } |
| 159 | hdb_handle_destroy (&cpg_handle_t_db, handle); |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * @defgroup cpg_coroipcc The closed process group API |
no test coverage detected