瀏覽代碼

Fix typo, for case where task can't be executed

Samuel Thibault 8 年之前
父節點
當前提交
17535dd11b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/sched_policies/prio_deque.c

+ 2 - 0
src/sched_policies/prio_deque.c

@@ -46,9 +46,11 @@ static inline int pred_can_execute(struct starpu_task * t, void * pworkerid)
 		     t  = starpu_task_prio_list_next(&pdeque->list, t))		\
 		{								\
 			if (predicate(t, parg))					\
+			{							\
 				starpu_task_prio_list_erase(&pdeque->list, t);	\
 				pdeque->ntasks--;				\
 				return t;					\
+			}							\
 		}								\
 		return NULL;							\
 	}