浏览代码

follow-up r21101: From Lionel: component_fifo: do not keep the mutex when not needed anymore

Samuel Thibault 8 年之前
父节点
当前提交
972573dd6d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sched_policies/component_fifo.c

+ 1 - 1
src/sched_policies/component_fifo.c

@@ -133,9 +133,9 @@ static int fifo_push_local_task(struct starpu_sched_component * component, struc
 		STARPU_ASSERT(!isnan(fifo->exp_len));
 		STARPU_ASSERT(!isnan(fifo->exp_len));
 		STARPU_ASSERT(!isnan(fifo->exp_start));
 		STARPU_ASSERT(!isnan(fifo->exp_start));
 
 
+		STARPU_COMPONENT_MUTEX_UNLOCK(mutex);
 		if(!is_pushback)
 		if(!is_pushback)
 			component->can_pull(component);
 			component->can_pull(component);
-		STARPU_COMPONENT_MUTEX_UNLOCK(mutex);
 	}
 	}
 
 
 	return ret;
 	return ret;