Преглед изворни кода

Add _starpu_prio_deque_erase

Samuel Thibault пре 8 година
родитељ
комит
dc8011edf2
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/sched_policies/prio_deque.h

+ 5 - 0
src/sched_policies/prio_deque.h

@@ -50,6 +50,11 @@ static inline int _starpu_prio_deque_is_empty(struct _starpu_prio_deque *pdeque)
 	return pdeque->ntasks == 0;
 }
 
+static inline void _starpu_prio_deque_erase(struct _starpu_prio_deque *pdeque, struct starpu_task *task)
+{
+	starpu_task_prio_list_erase(&pdeque->list, task);
+}
+
 /* push a task in O(lg(nb priorities)) */
 static inline int _starpu_prio_deque_push_task(struct _starpu_prio_deque *pdeque, struct starpu_task *task)
 {