ソースを参照

dm*: Destroy all the sched mutexes and conditions when deinitializing the policies.

Cyril Roelandt 12 年 前
コミット
d8b89baf63
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4 0
      src/sched_policies/deque_modeling_policy_data_aware.c

+ 4 - 0
src/sched_policies/deque_modeling_policy_data_aware.c

@@ -613,7 +613,11 @@ static void deinitialize_dmda_policy(struct starpu_machine_topology *topology,
 {
 {
 	unsigned workerid;
 	unsigned workerid;
 	for (workerid = 0; workerid < topology->nworkers; workerid++)
 	for (workerid = 0; workerid < topology->nworkers; workerid++)
+	{
 		_starpu_destroy_fifo(queue_array[workerid]);
 		_starpu_destroy_fifo(queue_array[workerid]);
+		_STARPU_PTHREAD_MUTEX_DESTROY(&sched_mutex[workerid]);
+		_STARPU_PTHREAD_COND_DESTROY(&sched_cond[workerid]);
+	}
 
 
 	_STARPU_DEBUG("total_task_cnt %ld ready_task_cnt %ld -> %f\n", total_task_cnt, ready_task_cnt, (100.0f*ready_task_cnt)/total_task_cnt);
 	_STARPU_DEBUG("total_task_cnt %ld ready_task_cnt %ld -> %f\n", total_task_cnt, ready_task_cnt, (100.0f*ready_task_cnt)/total_task_cnt);
 }
 }