Explorar o código

Fix comments on prio deque

Marc Sergent %!s(int64=11) %!d(string=hai) anos
pai
achega
df41587702
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/sched_policies/prio_deque.c

+ 4 - 1
src/sched_policies/prio_deque.c

@@ -127,6 +127,9 @@ static inline int pred_can_execute(struct starpu_task * t, void * pworkerid)
 		return NULL;						\
 	}
 
+/* deque a task of the higher priority available */
+
+/* From the front of the list for the highest priority */
 struct starpu_task * _starpu_prio_deque_pop_task(struct _starpu_prio_deque * pdeque)
 {
 	REMOVE_TASK(pdeque, head, prev, pred_true, STARPU_POISON_PTR);
@@ -138,7 +141,7 @@ struct starpu_task * _starpu_prio_deque_pop_task_for_worker(struct _starpu_prio_
 	REMOVE_TASK(pdeque, head, prev, pred_can_execute, &workerid);
 }
 
-/* deque a task of the higher priority available */
+/* From the back of the list for the highest priority */
 struct starpu_task * _starpu_prio_deque_deque_task(struct _starpu_prio_deque * pdeque)
 {
 	STARPU_ASSERT(pdeque);