ソースを参照

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