Преглед на файлове

Fix comments on prio deque

Marc Sergent преди 11 години
родител
ревизия
df41587702
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  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);