ソースを参照

From Lionel: component_prio: do not keep the mutex when not needed anymore

Samuel Thibault 8 年 前
コミット
f3ae1e7caa
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/sched_policies/component_prio.c

+ 1 - 1
src/sched_policies/component_prio.c

@@ -162,9 +162,9 @@ static int prio_push_local_task(struct starpu_sched_component * component, struc
 		STARPU_ASSERT(!isnan(prio->exp_len));
 		STARPU_ASSERT(!isnan(prio->exp_start));
 		
+		STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
 		if(!is_pushback)
 			component->can_pull(component);
-		STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
 	}
 
 	return ret;