소스 검색

Use &data->sched_cond instead of &data->sched_mutex as an argument for _STARPU_PTHREAD_COND_SIGNAL() in _starpu_priority_pop_task().

Cyril Roelandt 13 년 전
부모
커밋
ea512c298a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/sched_policies/eager_central_priority_policy.c

+ 1 - 1
src/sched_policies/eager_central_priority_policy.c

@@ -225,7 +225,7 @@ static struct starpu_task *_starpu_priority_pop_task(unsigned sched_ctx_id)
 
 	if (!chosen_task && skipped)
 		/* Notify another worker to do that task */
-		_STARPU_PTHREAD_COND_SIGNAL(&data->sched_mutex);
+		_STARPU_PTHREAD_COND_SIGNAL(&data->sched_cond);
 
 	return chosen_task;
 }