Browse Source

Do not let the prio scheduler decrement task stats several times when popping a task with multiple available implementations

Samuel Thibault 11 years ago
parent
commit
4eb6989308
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/sched_policies/eager_central_priority_policy.c

+ 1 - 0
src/sched_policies/eager_central_priority_policy.c

@@ -230,6 +230,7 @@ static struct starpu_task *_starpu_priority_pop_task(unsigned sched_ctx_id)
 						taskq->ntasks[priolevel]--;
 						taskq->total_ntasks--;
 						_STARPU_TRACE_JOB_POP(task, 0);
+						break;
 					} else skipped = 1;
 				}
 			}