瀏覽代碼

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;