Browse Source

Fix previous commit: pop_every_task now returns a "struct starpu_task *"

Cédric Augonnet 15 years ago
parent
commit
d4851f06d1
2 changed files with 3 additions and 5 deletions
  1. 2 4
      src/core/policies/sched_policy.c
  2. 1 1
      src/core/policies/sched_policy.h

+ 2 - 4
src/core/policies/sched_policy.c

@@ -238,13 +238,11 @@ struct starpu_task *_starpu_pop_task(void)
 }
 
 /* pop every task that can be executed on "where" (eg. GORDON) */
-struct starpu_task_list *_starpu_pop_every_task(uint32_t where)
+struct starpu_task *_starpu_pop_every_task(uint32_t where)
 {
 	STARPU_ASSERT(policy.pop_every_task);
 
-	struct starpu_task_list *list = policy.pop_every_task(where);
-
-	return list;
+	return policy.pop_every_task(where);
 }
 
 void _starpu_wait_on_sched_event(void)

+ 1 - 1
src/core/policies/sched_policy.h

@@ -32,7 +32,7 @@ int _starpu_get_prefetch_flag(void);
 
 int _starpu_push_task(starpu_job_t task, unsigned job_is_already_locked);
 struct starpu_task *_starpu_pop_task(void);
-struct starpu_task_list *_starpu_pop_every_task(uint32_t where);
+struct starpu_task *_starpu_pop_every_task(uint32_t where);
 
 void _starpu_wait_on_sched_event(void);