Explorar o código

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

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
17535dd11b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;							\
 	}