浏览代码

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);