Explorar el Código

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

Samuel Thibault hace 8 años
padre
commit
17535dd11b
Se han modificado 1 ficheros con 2 adiciones y 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;							\
 	}